Created
April 4, 2019 22:03
-
-
Save nshores/adbb8ab8080b43c1c1339d0c7c1efda0 to your computer and use it in GitHub Desktop.
wash_dry_sensor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sensor: | |
- platform: template | |
sensors: | |
wash_power: | |
friendly_name: "Current Wash Power" | |
unit_of_measurement: "W" | |
value_template: "{{ states.switch.zigbee_outlet.attributes.current_power_w }}" | |
washing_machine_status: | |
value_template: '{{ states.input_select.washing_machine_status.state}}' | |
friendly_name: 'Washing Machine Status' | |
dry_power: | |
friendly_name: "Current Dryer Power" | |
unit_of_measurement: "W" | |
value_template: >- | |
{% if states.switch.outlet.attributes.current_power_w %} | |
{{ states.switch.outlet.attributes.current_power_w }} | |
{% else %} | |
0 | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment