softypit / esp32_mqtt_eq3

esp32-based mqtt node to control EQ-3 BLE TRVs
146 stars 48 forks source link

how many thermostats can be controlled #39

Open jensenbln opened 5 years ago

jensenbln commented 5 years ago

sorry for the questions but i could not figure it out of the description: is it possible to control more than one thermostat with this?

bye

Floyddotnet commented 5 years ago

due to the ESP32's limited memory size, the exact number depends on many factors and is difficult to calculate accurately. many of them consume a few bytes more or less depending on the operating mode and configuration.

roughly estimate, you should not reach a limit with 50 thermostats per ESP yet.

softypit commented 5 years ago

For valve control esp32_mqtt_eq3 does not store any context data persistently. Each command submitted has the address of the valve to control and the command data. In theory there is no limit to the number of EQ3 valves a single ESP32 can control although obviously they must all be within BLE range. There is also no coded limit to the number of commands that esp32_mqtt_eq3 will attempt to add to the command queue. In reality this will be limited by available heap space although in looking into this I notice there is no checking of the malloc struct for new commands so the ESP will likely crash if too many outstanding commands are queued. I may add a limit in future and will certainly add a malloc-check to the next release.

electracks commented 4 years ago

The integration of multiple EQ3 thermostats is only partly working. The problem is, that the answer from the thermostat is used to update all thermostats, because HA can not determine which thermostat sends the answer. I think you need to filter the MAC with a rule and trigger specific MQTT commands. Is it possible to add examples for adding multiple thermostats to HA?

Found the error, the MAC is case sensitive