Closed snoekieboe closed 3 years ago
Hi snoekieboe, as i analyzed the bus i found out that one bit toggles the light, so i implemented it in the pic16 software to document it. But i didn't find a meaningful usecase for this feature so i didn't add it to the esp software.
If you need it you can easily activate it by adding the following lines after line 241 to esp8266.ino
if (message == "TOGGLE_LIGHT")
{
door.trigger_action(hoermann_action_toggle_light);
}
And publish a message with payload TOGGLE_LIGHT
to your SET_TOPIC
.
Thnx Stephan! I will add the code and see if it works. Keep you posted!
I've added the feature but do not recommed to use it due to a missing feedback.
It's working; sending the payload(on/off) "LIGHT" turn on and off the light, but in HA, I don't know how to do correctly a switch like "Venting". I think It's because the value is always LIGHT.
You must configure your switch to work in optimistic mode (don't define a state_topic) and that's exactly the thing why i don't recommend using toogle light.
The complete solution would be:
But i will not do this, at least in short term. Feel free to make a pull request.
Hi Stephan, First of all thanks for all your nice work. I've managed to get my hand on a PCB made according to your design and it is working like charm.
I've noticed the presence of a toggle light option in the Pic16 code and was wondering if it is already possible to use this feature through MQTT... could not verify this to be true whilst looking through the esp8266 code.
Thanks in advance !