Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.