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

Toggle keep switching off

$
0
0

@polmdm wrote:

Hi,
I’ve just flashed a Ankuoo NEO that control a light with hfeasy that provide an MQTT Client that successfully connects to my MQTT Server. Here you can find the setup of the plug:

Server IP: 192.168.XX.XX /
Server Port: 1883
usr: username
psw: ****
sub_topic: cmnd/abatjour/POWER
pub_topic: stat/abatjour/POWER
QOS: 2
ON value: 1
OFF value: 0

Furthermore I’ve been able import that switch through MQTT to Home Assistant and even to control it. Here’s my HA setup:

switch:
  -platform: mqtt
   name: "light"
   command_topic: "cmnd/abatjour/POWER"
   state_topic: "stat/abatjour/POWER"
   qos: 2
   payload_on: "1"
   payload_off: "0"
   retain: true

The issue is that if the light it’s OFF and I toggle it ON actually it does but the switch, on HA, after few seconds switch back to OFF position whereas the light stay ON.
To switch it OFF I need to press twice the toggle, the first touch is needed to make the toggle matching the plug state and the second to send the MQTT command to turn it OFF.

Someone already came across this issue? Or can someone help me figure out the issue?

Posts: 16

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



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