diff --git a/src/mqtt.py b/src/mqtt.py index e5d2d53..8d8afe2 100644 --- a/src/mqtt.py +++ b/src/mqtt.py @@ -72,8 +72,8 @@ class Mqtt: if (model == "motion" and key == "no_motion"): key="status" value="no_motion" - # do not retain event-based sensors (like switches). - if (model == "switch"): + # do not retain event-based sensors (like switches and cubes). + if (model in ["switch", "cube"]): retain = False # fix for rgb format