LaMetric
LaMetric TIME
Configuration
To add the LaMetric device to your Home Assistant instance, use this My button:
LaMetric can be auto-discovered by Home Assistant. If an instance was found, it will be shown as Discovered. You can then set it up right away.
Manual configuration steps
If it wasn’t discovered automatically, don’t worry! You can set up a manual integration entry:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the
Add Integration button. -
From the list, select LaMetric.
-
Follow the instructions on screen to complete the setup.
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
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
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
.”