ESPEasy with PCF8574 does not retain status

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
onlize
Normal user
Posts: 44
Joined: 12 Aug 2017, 03:44

ESPEasy with PCF8574 does not retain status

#1 Post by onlize » 31 Mar 2018, 03:23

I configured ESPEasy with PCF8574 and have two issues. I hope that someone could help. I use it with Home Assistant.

First issue is very small, just asking why. For some reason, the first pin on PCF8574 is reversed. When the door is closed, the status of this first pin is 1, when the door is opened, the status is 0. All other pins are correct. If the doors or windows are closed, the display 0 and 1 when opened. Home Assistant has a way around it and I used it.

The second issue is something I need to fix. When I reboot the Home Assistant, it displays incorrect status of the pins. The Home Assistant's explanation is this:
If the messages are published with the retain flag set, the binary sensor will receive an instant update after subscription and Home Assistant will display the correct availability state of the binary sensor when Home Assistant starts up.
I guess, it means that retain flag is not set. How do I set it? I do not see anything about this in ESPEasy control panel.

User avatar
budman1758
Normal user
Posts: 303
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESPEasy with PCF8574 does not retain status

#2 Post by budman1758 » 31 Mar 2018, 03:57

The esp does not retain the settings during reboot.
"The glass is twice as big as it needs to be".

onlize
Normal user
Posts: 44
Joined: 12 Aug 2017, 03:44

Re: ESPEasy with PCF8574 does not retain status

#3 Post by onlize » 31 Mar 2018, 06:51

I installed latest beta version and there is an option to retain in Advanced options. After I selected it, everything works the way it should.

Who is online

Users browsing this forum: Amazon [Bot], Anthropic Claude Bot [bot], Bing [Bot] and 22 guests