|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Diagnostic text sensor naming the device's coarse battery level: "full", "normal" or "low". More...
#include <platform_cover_controls.h>
Public Member Functions | |
| void | setup () override |
| Subscribe to the device's updates and publish what is already known. | |
| void | dump_config () override |
| Dump sensor 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. | |
Additional Inherited Members | |
| 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. | |
| Protected Attributes inherited from esphome::home_io_control::DeviceBoundCompanion | |
| IOHomeControlComponent * | parent_ {nullptr} |
| std::string | device_id_ |
Diagnostic text sensor naming the device's coarse battery level: "full", "normal" or "low".
Disabled by default: IOHomeBatteryLowBinarySensor is the entity automations should use. This one shows all three levels, which is useful while it is still open whether a device ever reports anything but "full". Publishes nothing while the device reports no battery.
Definition at line 150 of file platform_cover_controls.h.
|
override |
Dump sensor configuration to the log.
Definition at line 124 of file platform_cover_controls.cpp.
|
inlinenodiscardoverride |
Get setup priority so the parent hub is available first.
Definition at line 160 of file platform_cover_controls.h.
|
override |
Subscribe to the device's updates and publish what is already known.
Definition at line 117 of file platform_cover_controls.cpp.