Page 1 of 1

Use Tradfri E1810/E1524 as remote control

Posted: Sunday 06 October 2019 12:55
by JHO01
Recently the Tradfri E1810/E1524 is now recognised in Domoticz via zigbee2mqtt (https://www.zigbee2mqtt.io/devices/E1524_E1810.html).

I wanted to use the 5 buttons to switch on devices and lights. This is how I did it:

1) First add the Tradfri E1810/E1524 to your devices
Screenshot 2019-10-06 at 12.32.56.png
Screenshot 2019-10-06 at 12.32.56.png (52.27 KiB) Viewed 1010 times
Please note: the central ON/Off is an On/Off Switch, the other 4 buttons must be defined as a selector switch.

2) Central On/Off Button
The device you want to switch on/off can simply be added in the On Action and Off Action box with a Json command like:
http://xxx.xxx.xxx.xxx:8080/json.htm?ty ... itchcmd=On
http://xxx.xxx.xxx.xxx:8080/json.htm?ty ... tchcmd=Off

3) Other 4 Buttons (arrow left, arrow right, brightness up, brightness down)
These buttons produce a 10, 20 or 30 level-signal to Domoticz. That is why you have to declare these buttons as a selector switch.

A short press will give the 10 level-signal, a long press the 30 level-signal. So I decided to use '30' for the On command and the '10' for the Off command.

-First create 4 selector levels 0, 10, 20, 30
-At the selector actions add the required Json command, so
level 30 the On Json command
level 10 the Off Json command

In my case this looks like:
Screenshot 2019-10-06 at 12.44.28.png
Screenshot 2019-10-06 at 12.44.28.png (100.46 KiB) Viewed 1010 times
Done, happy switching!