Skip to content

Instantly share code, notes, and snippets.

@nshores
Created April 4, 2019 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nshores/adbb8ab8080b43c1c1339d0c7c1efda0 to your computer and use it in GitHub Desktop.
Save nshores/adbb8ab8080b43c1c1339d0c7c1efda0 to your computer and use it in GitHub Desktop.
wash_dry_sensor
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