It works perfectly when I click on the switch in Home.app to flick it on/off:
These are the respective commands displayed the Homebridge log:
9/3/2023, 4:41:18 PM] [Bathroom Ceiling] Publishing MQTT: cmnd/tasmota_x/POWER = OFF
[9/3/2023, 4:41:18 PM] [Bathroom Ceiling] Received MQTT: stat/tasmota_x/RESULT = {"POWER":"OFF"}
[9/3/2023, 4:41:18 PM] [Bathroom Ceiling] apply() function decoded message to [OFF]
[9/3/2023, 4:41:18 PM] [Bathroom Ceiling] apply() function decoded message to [undefined]
[9/3/2023, 4:41:18 PM] [Bathroom Ceiling] apply() function decoded message to [undefined]
And in Tasmota:
06:04:51.430 MQT: stat/tasmota_x/RESULT = {"POWER":"OFF"}
06:04:51.435 MQT: stat/tasmota_x/POWER = OFF
Now I have a Siri Shortcut Automation setup as an action for the push-button switch. Purpose is to toggle the light on/off. It uses simple logic. The CT values are unchanged when this shortcut is activated, i.e., in Home.app they do not differ. I only set my lights at the same CT and don't change it.
The issue is that when I run this, the Tasmota light flickers and changes temperature as it turns off. It's a really jarring experience.
When you look at the logs you can see why: this Siri Shortcut doesn't just send a power on/off signal, but rather the whole desired state of the light.
In Homebridge:
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] Publishing MQTT: cmnd/tasmota_x/POWER = OFF
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] Publishing MQTT: cmnd/tasmota_x/CT = 489
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] Publishing MQTT: cmnd/tasmota_x/Dimmer = 0
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] Received MQTT: stat/tasmota_x/RESULT = {"POWER":"OFF"}
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] apply() function decoded message to [OFF]
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] apply() function decoded message to [undefined]
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] apply() function decoded message to [undefined]
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] Received MQTT: stat/tasmota_x/RESULT = {"POWER":"ON","Dimmer":100,"Color":"08F7","White":100,"CT":489,"Channel":[3,97]}
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] apply() function decoded message to [ON]
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] apply() function decoded message to [100]
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] apply() function decoded message to [489]
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] Received MQTT: stat/tasmota_x/RESULT = {"POWER":"OFF","Dimmer":0,"Color":"0000","White":0,"CT":489,"Channel":[0,0]}
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] apply() function decoded message to [OFF]
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] apply() function decoded message to [0]
[9/3/2023, 4:56:08 PM] [Bathroom Ceiling] apply() function decoded message to [489]
I've got a Tasmota light with colour temperature control running through homebridge-mqttthing. Config:
It works perfectly when I click on the switch in Home.app to flick it on/off:![Pasted Graphic 4](https://github.com/arachnetech/homebridge-mqttthing/assets/18180575/7bd08b4e-82be-429d-8a0e-3f51dfabd362)
These are the respective commands displayed the Homebridge log:
And in Tasmota:
Now I have a Siri Shortcut Automation setup as an action for the push-button switch. Purpose is to toggle the light on/off. It uses simple logic. The CT values are unchanged when this shortcut is activated, i.e., in Home.app they do not differ. I only set my lights at the same CT and don't change it.![Pasted Graphic 3](https://github.com/arachnetech/homebridge-mqttthing/assets/18180575/c3efbf83-293b-4462-b2ed-71930854c858)
The issue is that when I run this, the Tasmota light flickers and changes temperature as it turns off. It's a really jarring experience.
When you look at the logs you can see why: this Siri Shortcut doesn't just send a power on/off signal, but rather the whole desired state of the light.
In Homebridge:
In Tasmota:
The questions are:
Let me know if y'all need more info :)