sHedC / homeassistant-mastertherm

Home Assistant Mastertherm Component, to communicate and control heat pumps from Mastertherm
MIT License
6 stars 2 forks source link

Test Multiple Updates using HASS trigger #53

Closed sHedC closed 1 year ago

sHedC commented 1 year ago

The Mastertherm API does not like multiple requests at the same time or too quickly so need to make sure there is a delay between set requests.

Need to test this using HASS to see if connections error out.

sHedC commented 1 year ago

Tested with a trigger that did 4 updates in HASS and there were no issues, so seems having a delay works. Will see if I cna shorten the delay and what the best approach is to make sure we have no read/ write overlaps.

sHedC commented 1 year ago

Resolved and added Lock and Wait to make sure multiple requests do not happen, allows 0.1s between each request.