Describe the bug
mqtt publish from fhem is not working with the following command:
set myBroker publish /smarthome/sz/tv/cmd {"command":"volume_down"}
I have debugged it, and it seems the payload is utf8 encoded!
So after changing line 338 from:
message = json.loads(msg.payload)
to:
message = json.loads(msg.payload.decode('utf-8'))
fixed the issue for me!
I think that change makes no problem with no utf8 encoded strings, but that has to be tried.
Sadly i dont have any other mqtt device to test.
Can you please test this on your side and add this fix?
To Reproduce
see above
Expected behavior
fhem mqtt publish should work with pylips
Describe the bug mqtt publish from fhem is not working with the following command:
set myBroker publish /smarthome/sz/tv/cmd {"command":"volume_down"}
I have debugged it, and it seems the payload is utf8 encoded! So after changing line 338 from:
message = json.loads(msg.payload)
to:
message = json.loads(msg.payload.decode('utf-8'))
fixed the issue for me! I think that change makes no problem with no utf8 encoded strings, but that has to be tried. Sadly i dont have any other mqtt device to test.
Can you please test this on your side and add this fix?
To Reproduce see above
Expected behavior fhem mqtt publish should work with pylips