LaMetric


LaMetric TIME is a smart clock that can be used to access applications, listen to web radio and display notifications.

Configuration

Adding LaMetric to your Home Assistant instance can be done via the user interface, by using this My button:

LaMetric can be auto-discovered by Home Assistant. If an instance was found, it will be shown as “Discovered”, which you can select to set it up right away.

Manual configuration steps

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. service. The service name matches the name of your device as shown in your LaMetric account. For example, if you have a device called “My LaMetric”, the service would become notify.my_lametric.

The notification service call against an LaMetric device can take the following, additional, optional parameters:

Configuration Variables

icon string (Optional)

An icon or animation. List of all icons available at https://developer.lametric.com/icons.

cycles integer (Optional, default: 1)

Defines how long the notification will be displayed. Set to 0 to require manual dismissal.

priority string (Optional, default: warning)

Defines the priority of the notification. Allowed values are info, warning, and critical.

icon_type string (Optional, default: none)

Defines the nature of notification. Allowed values are none, info, and alert.

sound string (Optional, default: none)

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"
  trigger:
    platform: state
    entity_id: device_tracker.tom_mobile
    from: "not_home"
    to: "school"
  action:
    service: 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 service calls:

  • 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:

  1. Log in with your LaMetric device account to developer.lametric.com.
  2. Click the Create button and choose Notification app.
  3. 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
  1. 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