Playing again and need some guidance.
I have MQTT set up and working well with my house alarm via a python script and a Sonoff module having flashed it with Tasmota.
I now want to interact with some Ikea Tradfri devices I have.
My link between the Ikea bridge and MQTT is hemtjanst/tradfri-mqtt: Mirrors Trådfri gateways endpoints into MQTT and send commands to the gateway from MQTT (github.com)
I can see all the Ikea devices in MQTT both via this plugin as well as an MQTT Explorer that is handy to view the traffic through the broker.
I am using a plugin outlet to test. There are 18 'Sub's set up for the device and I only see a change in one; Sub: tradfri-raw/15001/65541:3312:5850
If I turn on the outlet using the Ikea app I can see the change in the plugin on the associations page, I can also see the change in the MQTT Explorer. Both show values of 1 and 0.
I am struggling to send a command to turn the outlet On or Off via an HS event. I can turn the Sonoff On and Off via an event, I can also trigger things in my alarm.
Any help on the format of the command needed - or which of the 18 'Sub's I need to send the command to would be appreciated.
I have MQTT set up and working well with my house alarm via a python script and a Sonoff module having flashed it with Tasmota.
I now want to interact with some Ikea Tradfri devices I have.
My link between the Ikea bridge and MQTT is hemtjanst/tradfri-mqtt: Mirrors Trådfri gateways endpoints into MQTT and send commands to the gateway from MQTT (github.com)
I can see all the Ikea devices in MQTT both via this plugin as well as an MQTT Explorer that is handy to view the traffic through the broker.
I am using a plugin outlet to test. There are 18 'Sub's set up for the device and I only see a change in one; Sub: tradfri-raw/15001/65541:3312:5850
If I turn on the outlet using the Ikea app I can see the change in the plugin on the associations page, I can also see the change in the MQTT Explorer. Both show values of 1 and 0.
I am struggling to send a command to turn the outlet On or Off via an HS event. I can turn the Sonoff On and Off via an event, I can also trigger things in my alarm.
Any help on the format of the command needed - or which of the 18 'Sub's I need to send the command to would be appreciated.
Comment