I've added some safety guards for the set_remote_temperature function which will ensure that the Mitsubishi will revert back to internal temperature in the event that the remote sensor goes down or cannot be communicated with.
I've separated this out into 3 different timeouts
While the machine is heating or cooling. Timeouts should be shorter while the machine is in this state as we expect the temperature to shift when heat is being pumped, and also the cost of failure is higher in this case.
While the machine is idle. Timeout can be longer as some zigbee based temperature sensors will only send updates once a temperature change happens, and if they do happen to go offline then the cost is minimal to the user (unlike the heating/cooling case)
Ping timeouts: If HomeAssistant/NodeRed/WiFi goes down. This should be a rapid timeout as there is no chance that the heatpump can receive remote sensor updates if this happens.
This is my first time doing any ESPHome development, so any feedback on how to do this better would be appreciated. And thank you for all your hard work in running this project!
I've added some safety guards for the set_remote_temperature function which will ensure that the Mitsubishi will revert back to internal temperature in the event that the remote sensor goes down or cannot be communicated with.
I've separated this out into 3 different timeouts
This is my first time doing any ESPHome development, so any feedback on how to do this better would be appreciated. And thank you for all your hard work in running this project!