Water heater 实体
从 homeassistant.components.water_heater.WaterHeaterEntity 派生实体平台。
属性
Tip
属性应始终仅返回内存中的信息,而不是执行 I/O(如网络请求)。实现 update() 或 async_update() 来获取数据。
允许的 operation mode 是基础组件中指定的状态,water_heater 组件的实现不能有所不同。
属性必须遵循 temperature_unit 中定义的单位。
状态
支持的功能
支持的功能通过使用 WaterHeaterEntityFeature 枚举中的值来定义,并使用按位或(|)运算符进行组合。
方法
set_temperature 或 async_set_temperature
设置热水器应将水加热到的温度。
set_operation_mode 或 async_set_operation_mode
设置热水器的 operation mode。必须在 operation_list 中。
turn_away_mode_on 或 async_turn_away_mode_on
将热水器设置为 away mode。
turn_away_mode_off 或 async_turn_away_mode_off
将热水器恢复到上一个 operation mode。关闭 away mode。
turn_on 或 async_turn_on
开启热水器。
turn_off 或 async_turn_off
关闭热水器。

