@Seaside Your script is great and seems to work flawlessly for users. However, not everyone uses MQTT or should be forced to install a broker. Would you alternatively add a way to communicate with the openHAB REST API? Integration via stdout might also be possible. Unsure how to best handle the multiple devices feature that way. I’d probably move the loop to openHAB but I get that your goal was different.
Would be great to finally have ONE solution for all users
@Maurits28 maybe you could update the first posting with this solution. Setting of the privileges should be less insecure by following this recommendation.