aderusha / MQTTCarPresence

WiFi device to announce the presence of a car for garage door automation
MIT License
312 stars 45 forks source link

Tasmota variation - unknown state doesnt work #22

Open jaygrovr opened 3 years ago

jaygrovr commented 3 years ago

hey there, I just got everything setup and it works with the tasmota variation, except when the d1 mini goes offline, HA reports the state as unknown and the garage door never closes. Is there a way to fix that?

Thanks Jason

SirGoodenough commented 1 year ago

see https://github.com/aderusha/MQTTCarPresence/issues/9 If that didn't help, ... If your device shows as unknown, you may need to change the 'unavailable' in the blueprint to 'unknown'. It shows up in 2 places in the tasmota one.

trigger:
  - platform: state
    entity_id: !input car_presence
    to: 'on'
  - platform: state
    entity_id: !input car_presence
    to: 'unavailable'
    for:
      minutes: 1

AND

      - conditions:
          - condition: state
            entity_id: !input car_presence
            state: 'unavailable'
          - condition: state
            entity_id: !input garage_door
            state: open