Why GPIO broadcasted ???

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Why GPIO broadcasted ???

#1 Post by vincen » 20 Oct 2017, 14:59

Hi

I'm using several ESP in my flat with LetsEasy fw on it with great success on MQTT to my Home Assistant system. I had setup the Gloal Sync thing but never really used it !!

I have added a relay to one of my ESP and so control through MQTT using this code:

Code: Select all

- platform: mqtt
    name: "Chauffage"
    state_topic: "/esp/cuisine/cmd"
    command_topic: "/esp/cuisine/cmd"
    payload_on: "GPIO,5,0"
    payload_off: "GPIO,5,1"
    optimistic: false
    retain: true
It works perfect but since then I have lost the data of my BMP180 device connected to an other ESP. I then realised it was using same GPIO on two different ESP and with Global Sync it might be the problem. I then deactivated Global Sync on all ESP, indicated 0 as port, and then rebooted all ESP. The "other" ESP are no more listed now on main page of web interfaces but I still have same problem !!

An idea what's the problem ??

Using version 2 dev build 11 or 12 depending of ESP ;)

Thanks

Vincèn

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Why GPIO broadcasted ???

#2 Post by vincen » 20 Oct 2017, 16:09

Oki made some progress on my problem !! I have discovered I was "reusing" same subject for two different MQTT Devices so I corrected that but I still have problem that when I control GPIO of one of my ESP it's automatically broadcasted to all others :(

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Why GPIO broadcasted ???

#3 Post by vincen » 23 Oct 2017, 07:54

Made some progress but still unable to switch off the relay, only put it on but not sure if problem is in my HA syntax or in ESP ???

Code: Select all

platform: mqtt
    name: "Ventilateur"
    state_topic: "/sdb/relay/state"
    command_topic: "/sdb/gpio/5"
    payload_on: 1
    payload_off: 0
    optimistic: false
    retain: true

Post Reply

Who is online

Users browsing this forum: No registered users and 41 guests