Skip to content

LametricTime

oussama Dahmaz edited this page Jun 5, 2020 · 10 revisions

Presentation

This plugin allows to send notification to Lametric Time devices.

Configuration

To configurate your Lametric device we advise you to follow the §3.Get started in 3 easy steps, from the official Lametric user_guide.pdf. Your device should be connected to the same wifi as Yadoms

Yadoms plugin

Create a new plugin "LametricTime"

It provides 2 pairing mode in both of them you have to get API_key, this key is needed and provided by sign up on Lametric website.

You can switch between modes by hitting the combo box.

  1. Automatic pairing mode

This mode use UPNP protocol to detect all connected devices automatically. Each device will be declared as follow : DeviceName + IP address.

We recommend to use secure way to communication between the device and Yadoms via https using port 4343.

  1. Manual pairing mode

In this mode you must fill in the IP address :

You can find your device IP address easily by using Lametric Time mobile application (Your smartphone should be connected to the same wifi as your device !) :

Sample Script

We wrote a simple script to send notification (The level of the battery) when the fakeSensor1 battery level becomes lower then 20%

you have the possibilty to add some of the available icons by setting IconType enumerator. Available icons are listed bellow

Available Icons

Enum Name Icons
Yadoms
Beer
BeerAnimated
Email
Battery100
Battery80
Battery60
Battery40
Battery20
BatteryLowAnimated
ThermometerLow
ThermometerOutdoor
ThermometerAnimated
WaterDrop
WaterDropAnimated
Sun
CloudlySunAnimated

The plugin in action

When the notifications is sent, Lametric will display Yadoms_logo + YADOMS in the first frame :

and in the second frame Yadoms_logo + customize text (Here is the FakeSensor1 battery level)

Clone this wiki locally