Explorar el Código

Add power_sensor_restore_state (#968)

Add the power_sensor_restore_state option to the documentation - it was extremely helpful and solved my problem so I wanted to make sure it was available to others.

Co-authored-by: Vassilis Panos <4130346+vassilis-panos@users.noreply.github.com>
Sam hace 4 años
padre
commit
64eba9dd79
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      docs/CLIMATE.md

+ 2 - 0
docs/CLIMATE.md

@@ -17,6 +17,7 @@ _Please note that the device_code field only accepts positive numbers. The .json
 | `temperature_sensor` | string | optional | *entity_id* for a temperature sensor |
 | `humidity_sensor` | string | optional | *entity_id* for a humidity sensor |
 | `power_sensor` | string | optional | *entity_id* for a sensor that monitors whether your device is actually `on` or `off`. This may be a power monitor sensor. (Accepts only on/off states) |
+| `power_sensor_restore_state` | boolean | optional | If `power_sensor` is set, and the device is likely to turn off and back on while still in the set mode (for instance, a minisplit cycling on and off while in heating or cooling mode), setting this to `true` will cause the climate state to update dynamically, following the state of the `power_sensor`. |
 
 ## Example (using broadlink controller):
 Add a Broadlink RM device named "Bedroom" via config flow (read the [docs](https://www.home-assistant.io/integrations/broadlink/)).
@@ -68,6 +69,7 @@ climate:
     temperature_sensor: sensor.temperature
     humidity_sensor: sensor.humidity
     power_sensor: binary_sensor.ac_power
+    power_sensor_restore_state: true
 ```
 
 ## Example (using LOOKin controller):