The components which are directly relevant to my problem:
- HA v. 0.114.4
- wall RF433 switches
- … which signals are caught by a Sonoff RF Bridge
- … that sends an MQTT message
- … handled by AppDaemon
- … to switch on/off Sonoff Basic switches via HA
I totally understand that such a complex setup can induce some lag between the moment I press the wall switch and the moment the light is on or off.
I have not witnessed serious lags (they are there, but seem to be ~500ms, completely bearable) - when pressing the wall switch that handles a single entity (a single switch).
What I see, though, is that when a have a quick series of messages sent to HA from AppDaemon, they seem to be throttled (for a lack of better word: the time between the switches of the several devices is different and the more switches I go though, the slower to react the last ones are.
To be more precise: I have a group of switches (not lights) and to toggle them, I have to iterate over the components of the group, calling the entity one by one. This means that if
group.room has 10 entities, I have to call the “switch off” service on each of them one by one. I cannot toggle
The effect I see, generally speaking, is that the time of reaction between device
n+1 increases as
n increase. It really feels as if the calls were throttled.
This is still acceptable, but I would like to understand whether this effect is expected because of some design
I am an amateur developer and I understand that the lag can come from various places (the messages could be sent with a delay by AppDaemon for instance (which is not the case, but that’s an example of possible cause)). What I probably mean to is to understand whether HA has some limiting capacities built-in (and if so - whether they are tunable))
Note: I know that I could turn my switches into lights via the
switch platform (and have the ability to toggle a whole group - which may or may not help) but I want to keep that setup to be able to consistently edit devices and entities though the Lovelace UI.