|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Switch that starts and ends the heater's boost. More...
#include <platform_water_heater.h>
Public Member Functions | |
| void | setup () override |
| Subscribe to the device's updates and publish what is already known. | |
| void | dump_config () override |
| Dump switch configuration to the log. | |
| float | get_setup_priority () const override |
| Get setup priority so the parent hub is available first. | |
| Public Member Functions inherited from esphome::home_io_control::DeviceBoundCompanion | |
| void | set_parent (IOHomeControlComponent *parent) |
| Set the parent controller component. | |
| void | set_device_id (const std::string &id) |
| Set the device ID whose state this companion sensor exposes. | |
Protected Member Functions | |
| void | write_state (bool state) override |
| Start or end the boost; the read-back publishes the state. | |
| Protected Member Functions inherited from esphome::home_io_control::DeviceBoundCompanion | |
| void | register_companion_binding_ (const std::function< void(const IoDevice &)> &publish) |
| Shared setup() body: subscribe to this device's updates and publish the initial state. | |
Additional Inherited Members | |
| Protected Attributes inherited from esphome::home_io_control::DeviceBoundCompanion | |
| IOHomeControlComponent * | parent_ {nullptr} |
| std::string | device_id_ |
Switch that starts and ends the heater's boost.
A write goes through IOHomeControlComponent::set_water_heater_boost(), which writes the boost duration and the operating-mode word and reads the status back; the switch shows what the heater reports in that word (ADR 0081), so it has no state until the first poll and never shows a command the heater did not confirm. Switching on asks for a boost of duration 1, the only value seen. Switching off sends the word that ends both boost and away.
It never writes at boot: setup() restores nothing, and the codegen sets restore mode DISABLED, so a reboot cannot end a boost that is running.
Definition at line 164 of file platform_water_heater.h.
|
override |
Dump switch configuration to the log.
Definition at line 256 of file platform_water_heater.cpp.
|
inlinenodiscardoverride |
Get setup priority so the parent hub is available first.
Definition at line 172 of file platform_water_heater.h.
|
override |
Subscribe to the device's updates and publish what is already known.
Definition at line 238 of file platform_water_heater.cpp.
|
overrideprotected |
Start or end the boost; the read-back publishes the state.
| state | True to start a boost. |
Definition at line 247 of file platform_water_heater.cpp.