SEPIA-Framework / sepia-docs

Documentation and Wiki for SEPIA. Please post your questions and bug-reports here in the issues section! Thank you :-)
https://sepia-framework.github.io/
236 stars 16 forks source link

publish mqtt to change smart device state not working #137

Closed royrogermcfreely closed 2 years ago

royrogermcfreely commented 2 years ago

Hello,

when i call sepia to turn on/off the light, i got a mqtt message like:

topic: sepia/smart-devices/light/gang payload: {"state":"on"}

and my light goes on/off.

but when i publish with the same topic and payload the light goes on/off but the state of the device in sepia is not changing.

so sepia never knows the right state if i change the light state by myself.

do i miss something?

/roy

fquirin commented 2 years ago

I quickly checked the code again and the MQTT class should track all incoming messages as well. Where do you check the state? Inside the SEPIA control HUB or from the client via "what is the state of the lights in the livingroom?" etc..

royrogermcfreely commented 2 years ago

i checked the state both - inside the control hub and via "whats the state of..."

in node-red when i debug the mqtt i get the right topics and payloads

fquirin commented 2 years ago

I'm a bit busy right now but I'll try to spin up my Node-RED again and double-check ...

royrogermcfreely commented 2 years ago

hey.

i dont know what the problem was but i deleted all my devices in the smart hub and created all new also the mqtt bridge.

and now its working.

so no worry, maybe i messed something up in my config or somewhere else.

fquirin commented 2 years ago

ok, thanks for the info and good to hear its working :relieved: