There may well be ways of refactoring the code for the case with three inputs. I will leave that as an exercise for the reader.
Colin
15
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Repost State of Mqtt Topic if other Topic's state is 1 | 21 | 1326 | 11 April 2020 | |
| How to send an initial MQTT message to get the status of a tasmota switch? | 49 | 5266 | 6 December 2021 | |
| Two way switch infinite loop | 23 | 1307 | 3 September 2022 | |
| Problem with MQTT and switch update | 27 | 5406 | 26 November 2020 | |
| MQTT is driving me crazy with inconsistent doings | 77 | 2573 | 29 July 2020 |