Hey there,
I am trying to create a cover for my dryer, but I appear to be in over my head. Let me start with my idea, then I can show you my work so far.
If the door is open, report as “Open”. If the door is closed, report as “Idle”. If the door is closed and the vibration sensor is sensing vibration, report as “Running”. If the vibration sensor is no longer sensing vibration, but the door hasn’t been opened yet, report as “Dry”. Reset to “Idle” the next time the door is opened and returned to closed state.
Here’s the YAML I created so far. I really don’t fully understand what I’m doing, but I’m trying to learn it.
#Dryer
#template:
# - sensor:
# - name: "Dryer"
# state: >
# {% if is_state('binary_sensor.lumi_lumi_sensor_magnet_aq2_opening', 'closed') and is_state('binary_sensor.lumi_lumi_vibration_aq1_vibration', 'detected') %}
# RUNNING
# {% elif is_state('binary_sensor.lumi_lumi_sensor_magnet_aq2_opening', 'closed') and is_state('binary_sensor.lumi_lumi_vibration_aq1_vibration', 'clear') %}
# DRY
# {% elif is_state('binary_sensor.lumi_lumi_sensor_magnet_aq2_opening', 'closed') and is_state('binary_sensor.lumi_lumi_vibration_aq1_vibration', 'clear') %}
# IDLE
# {% elif is_state('binary_sensor.lumi_lumi_sensor_magnet_aq2_opening', 'open') %}
# OPEN
# {% endif %}
If you see what is wrong with my code so far, and also know where to point me so I can figure this out, it would be very appreciated. I have another YAML planned for the washer after I finish this one, so I hope to understand this so I can build that one on my own.
1 post - 1 participant