MQTT subscribe Topic? #954
Replies: 2 comments
-
Meanwhile I added the Therefor I added option
So the Topic is fine from my understanding. But I cannot find any information about subscription. |
Beta Was this translation helpful? Give feedback.
-
Got it! The root cause was about the prefix "/" in Hope this helps others facing the same issue. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm using ebusd 23.1.23.1 together with mosquitto and ioBroker. All measurement values are sent via MQTT (mosquitto) to ioBroker - works well.
I do use the following EBUSD_OPTS:
EBUSD_OPTS="--configpath=/etc/ebusd/configs --device=ens:192.168.178.59:9999 --mqttport=1883 --mqttuser=USER --mqttpass=PASS --mqtttopic=/Home/Heatpump/%circuit/%name --mqttjson --mqttvar=filter-direction=r|u|^w --pollinterval=15
I would like to write values via MQTT to my ebus, for example setting the operation mode of my Hotwater Circuit
HwcOpMode
Possible values are
off
andauto
.I can write them manually via CLI by running
ebusctl write -c 700 HwcOpMode off
--> "done"The value is changed accordingly.
Now I tried to do the same via MQTT by writing from ioBroker to the Topic
/Home/Heatpump/700/HwcOpMode/set
as I set it via --mqtttopic in EBUSD_OPTS. The Payload is e.g.off
, but I also tried JSON-Format{opmode: {value: off}}
Via
mosquitto_sub
I can see that mosquitto receives the correct value.But unfortunately ebusd does nothing, even no Log message about received MQTT Message.
Do I use the correct MQTT-Topic? Anyone who is using a similiar Config and can share his/her results?
Regards
Beta Was this translation helpful? Give feedback.
All reactions