In my aim to eliminate all my personal helper scripts, (they make my scripts harder to share with others community members) I’ll try to use “vanilla” HABApp functionality. There are situations where post_update
doesn’t seem to work well and I guess it’s like @watou once explained:
For example the following code won’t turn the wall plug on: (updated by MQTT binding)
self.wall_plug_kitchen_item.oh_post_update_if("ON", not_equal="ON")
However the following code works well:
self.wall_plug_kitchen_item.on() if not self.wall_plug_kitchen_item.is_on() else None
Cheers!