Use Tradfri E1810/E1524 as remote control

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
User avatar
JHO01
Posts: 24
Joined: Wednesday 02 November 2016 13:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands
Contact:

Use Tradfri E1810/E1524 as remote control

Post 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 1009 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 1009 times
Done, happy switching!
RPI-3, Z-stick Gen5, RFlink, Zigbee2mqtt, 1-wire DS18B20, Fibaro switches, various RF-433 sockets, BMP018, Somfy, Wemos, Tradfri.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest