LaMetric
LaMetric TIME
配置
要将 LaMetric device 添加到您的 Home Assistant 实例中,请使用此 My 按钮:
LaMetric 可以被 Home Assistant 自动发现。如果发现了实例, 它将显示为 已发现。您可以立即进行设置。
手动配置步骤
如果没有自动发现,请不要担心!您可以设置一个 手动集成条目:
-
浏览到您的 Home Assistant 实例。
-
转到
设置 > 设备与服务。 -
在右下角,选择
Add Integration 按钮。 -
从列表中选择 LaMetric。
-
按照屏幕上的说明完成设置。
Actions
The LaMetric integration provides actions to interact with your LaMetric device(s). Those action can be used in, for example, automations.
Action lametric.chart
The lametric.chart
action allows you to display a little chart to your LaMetric.
Configuration Variables
Defines how long the notification will be displayed. Set to 0
to require manual dismissal.
Defines the priority of the notification. Allowed values are info
, warning
, and critical
.
Defines the nature of notification. Allowed values are none
, info
, and alert
.
Defines the sound of the notification. Allowed are listed below.
Action lametric.message
The lametric.message
action allows you to send a message to your LaMetric. These
messages can be enrichted with icons and sounds.
Configuration Variables
The ID of an icon or animation. List of all icons available at https://developer.lametric.com/icons
Defines how long the notification will be displayed. Set to 0
to require manual dismissal.
Defines the priority of the notification. Allowed values are info
, warning
, and critical
.
Defines the nature of notification. Allowed values are none
, info
, and alert
.
Defines the sound of the notification. Allowed are listed below.
Notifications
You can send notifications to your LaMetric device using the Notifications integration.
Each LaMetric device added to your Home Assistant will have its own
notify.
actions. The action name matches the name of your device
as shown in your LaMetric account. For example, if you have a device
called “My LaMetric”, the action would become notify.my_lametric
.
The notification performed action against an LaMetric device can take the following, additional, optional parameters:
Configuration Variables
The ID of an icon or animation. List of all icons available at https://developer.lametric.com/icons
Defines how long the notification will be displayed. Set to 0
to require manual dismissal.
Defines the priority of the notification. Allowed values are info
, warning
, and critical
.
Defines the nature of notification. Allowed values are none
, info
, and alert
.
Defines the sound of the notification. Allowed are listed below.
Example
To add a notification sound, icon, cycles, or priority override,
- alias: "Send notification on arrival at school"
triggers:
- trigger: state
entity_id: device_tracker.tom_mobile
from: "not_home"
to: "school"
actions:
- action: notify.my_lametric
data:
message: "Tom has arrived at school!"
data:
sound: "notification"
icon: "51"
cycles: 0
priority: "critical"
icon_type: "info"
List of notification sounds
The following notification sounds can be used with the sound
parameter on
notify action:
alarm1
alarm10
alarm11
alarm12
alarm13
alarm2
alarm3
alarm4
alarm5
alarm6
alarm7
alarm8
alarm9
bicycle
car
cash
cat
dog
dog2
energy
knock-knock
letter_email
lose1
lose2
negative1
negative2
negative3
negative4
negative5
notification
notification2
notification3
notification4
open_door
positive1
positive2
positive3
positive4
positive5
positive6
statistic
thunder
water1
water2
win
win2
wind_short
wind
Manual automatic import configuration
If you prefer not to use the Home Assistant account linking service, you can set up the LaMetric application manually.
However, please note! At this point, it is easier to choose the “Enter manually” option during the integration setup; this also avoids the use of the account linking service and doesn’t need all the steps below either.
If you still want to set up your own LaMetric application for importing your LaMetric devices, use the following steps:
- Log in with your LaMetric device account to developer.lametric.com
. - Click the Create button and choose Notification
app. - Fill in the form. You can put almost anything in the fields, they just need to be populated:
- App Name: Home Assistant
- Description: Home Assistant
- Redirect URI:
https://my.home-assistant.io/redirect/oauth
- Privacy Policy:
http://localhost/
- Check the “basic” and “read_devices” permission boxes
- Click Save
- You should be directed to your Notification Apps list
, click on “Home Assistant”, copy your client ID and Client Secret.
You may then add the credentials to Application Credentials and then setup the integration.
I have manually disabled My Home Assistant
If you don’t have My Home Assistant on your installation,
you can use <HOME_ASSISTANT_URL>/auth/external/callback
as the redirect URI
instead.
The <HOME_ASSISTANT_URL>
must be the same as used during the configuration/
authentication process.
Internal examples: http://192.168.0.2:8123/auth/external/callback
, http://homeassistant.local:8123/auth/external/callback
.”
Troubleshooting
The brightness doesn’t go to 100%
When the LaMetric is powered by a USB port on a computer, the brightness is limited. To get the full brightness, use a proper USB charger.