Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105878

Update switch state enitity based on a binary_sensor state entity

$
0
0

Hi,

The last 2 days I’m pulling out my hairs to fix the state of my Garagedoor. The toggle does not represent the real state of the door. In other words if i’m opening the door, the toggle goes active for a few seconds and goes back to off while the door is open.

I’m using a Shelly 2PM with a switch. The functionality of opening/closing doors is working just fine.

There is only 1 entity which shows me the actual state of the door:

  • Door closed: binary_sensor.switch_garage1_1_switch_0_input = On
  • Door open: binary_sensor.switch_garage1_1_switch_0_input = Off

I already tried to so many things (also from the forum) but it feels likes i’m going deeper and deeper in the swamp :slight_smile:

My initial guess was, I want to update the state of switch.switch_garage1_1_switch_0 (as you would do in the debug tools) when binary_sensor.switch_garage1_1_switch_0_input to Off . This is what I started with (Automation):

alias: Update Garage switch state
description: ""
triggers:
  - trigger: state
    entity_id:
      - binary_sensor.switch_garage1_1_switch_0_input
    from: null
    to: "off"
conditions: []

But after this things getting complicated for me.

Any ideas how to fix this properly?

  • Gerwin

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 105878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>