Steamy Tom
Executive Member
- Joined
- Jan 23, 2019
- Messages
- 9,867
- Reaction score
- 6,107
Have fun with ghost switching. I literally only use pulsetime and that is all that should be on a door switch.
i have zero ghosting....
South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
Have fun with ghost switching. I literally only use pulsetime and that is all that should be on a door switch.
You using a reed switch to check if gate is open/closed?All working including the reed switch.
Now to do the programming in Hass.
Why do you guys use retain on a SV used on a garage door / gate? I don't get it.
Look the retain is awesome for lights.There should be no retain in Home Assistant of any kind ever when it comes to Tasmota devices.
HOWEVER
You want SwitchRetain and/or PowerRetain on the Tasmota device itself so that when Home Assistant restarts or power is lost to Tasmota you have the actual status reported back to HA.
Otherwise you'll door/gate will say it's open when it's closed or the other way round which is not great especially when you are remote.
Ghosting would only happen if you put Retain:True into your Yaml for Home Assistant...even once then it's all ****ed until you clean it up.
*****
This video explains it well.
CorrectYou using a reed switch to check if gate is open/closed?
You using a reed switch to check if gate is open/closed?
What's the topic change for?Switchretain 1
Powerretain 1
PulseTime1 1
switchmode1 0
switchmode2 2
switchtopic2 "device_name_state"
What's the topic change for?
Look the retain is awesome for lights.
Door state is not from the sv in my case though, I get it from the alarm door sensor.
So OK it make sense if you need it for a sensor on the sv if it only send updates on state change.
HA is only confused until the next state message is sent via MQTT from the device and then it updates status accordingly. Those messages are every 1 min by default if I remember correctly.There should be no retain in Home Assistant of any kind ever when it comes to Tasmota devices.
HOWEVER
You want SwitchRetain and/or PowerRetain on the Tasmota device itself so that when Home Assistant restarts or power is lost to Tasmota you have the actual status reported back to HA.
Otherwise you'll door/gate will say it's open when it's closed or the other way round which is not great especially when you are remote.
Ghosting would only happen if you put Retain:True into your Yaml for Home Assistant...even once then it's all ****ed until you clean it up.
*****
This video explains it well.
Correct, the sensor is part of the alarm system. So if the alarm is armed, and the garage door is opened, the alarm goes off. You know, the same as a PIR on a alarm system.I can only assume the sensor isn’t linked to the SV then?
Very few people use a setup like that.
HA is only confused until the next state message is sent via MQTT from the device and then it updates status accordingly. Those messages are every 1 min by default if I remember correctly.
But yeah definitely agree that MQTT retention is a bad idea on something like a gate or garage door!!
Any idea why it throws and error intergration cover not found.
It relates to line 28. Is this supposed to be under a sub heading?![]()
Lowercase c for cover
what a first post
cover needs to be lower case
Changed to lower case. Should the car automatically popup?this is mine:
- platform: mqtt
name: "Garage"
state_topic: "cmnd/garagestate/POWER2"
command_topic: "cmnd/garage/POWER"
payload_open: "ON"
payload_close: "ON"
payload_stop: "ON"
state_open: "OFF"
state_closed: "ON"
optimistic: false
device_class: garage
but that is in the cover.yaml file and i have
cover: !include cover.yaml
in my configuration.yaml
Changed to lower case. Should the car automatically popup?
I'm struggling with the Hass integration. Figured out mqtt had no username password fixed the config file and the Hass config file. Realised mqtt wasn't setup on the sonoff so did that. Now I can discover the device in hass.
Need to get the card to give a switch for the garage and to say open/close for the sensor, I thought this code should do it but I think I'm wrong