I use rf 433mhz remote + socket in combination with mqtt light component. I convert signal from rf to mqtt and then back. When I press ON on rf remote I convert code trugh node-red to two topic home/jimmy/sunlight-state and home/jimmy/sunlight boath have ONpayload. First is for state_topic and second is for command_topic. I configuret mqtt light like I show on my first post.
BUT NOT WORKING PROPERLY:
When I use remote, light is working on/off no problem (but entity status on web ui not changing).
On web-ui I can only turn on the lights but switch move to off position after 1s automaticaly. Light stays on. Off not working?
I suggest using an Mqtt sniffer program and connect to your broker to see what messages are being sent around when operating your device from the remote or ui.
I use mqttfx.
You can then see what exact topics are sent. At least it will help you narrow things down a little.
I have only one configured broker. When I try to stop it. Try again on/off the lights and not working if I stop broker. Soo I connected to correct broker. But still no messages on sniffer? Any idea?
If you are connected to the correct broker with both your light and with the sniffer then there should be something showing on your sniffer when you operate the light.