-
Hello, I am struggling to find the correct format for an MQTT Switch in Home Assistant to set the Domestic Hot Water on and off. This is what I have tried so far and a few permutations regarding topics, commands, etc., but I cannot set it for some reason. What do I miss or do wrongly? I cannot even see the status, but I set BSB-LAN to send 1600 as well as many others (others are received and displayed correctly, but those are sensors). And just to confirm, I can set the value from URL, but not from the Web interface. (I am on version 2.0.93-20210423142305)
@fredlcore, @torbennehmer - could you please help me out what would be the right syntax? |
Beta Was this translation helpful? Give feedback.
Replies: 19 comments 28 replies
-
First of all, please update to the most recent version on GitHub. |
Beta Was this translation helpful? Give feedback.
-
I struggled a bit more an have found the right syntax.
@fredlcore - by any chance do you know what is the difference between the On and the Eco option? I guess it must be related to the reduced temperature and the schedule of the reduced temperature, but I am just guessing. |
Beta Was this translation helpful? Give feedback.
-
Great, but it would help us all if you could let us know what the problem was: was it the missing slash? Or something else? As for the exact meaning of 1600, probably @1coderookie knows best. |
Beta Was this translation helpful? Give feedback.
-
The leading slash shouldn't be needed anywhere, the code doesn't make a difference and HA just sends the given payload to the topic. That slash is needed as an artifact in the URL Parser of the webinterface - they are completely different protocols and have their own rules there. HTTP uses slashes (and ? and & and such) to separate commands. MQTT uses them in topic identifiers as well, but the message you send to a topic is a separate thing, MQTT clients do not concatenate them, they just post any payload you need to the topic in question. HA is no different from other MQTT clients here.
@fredlcore I'll check this one final time, but I think the current docs are ambigous/incorrect there, at least the english ones. There should not be any difference between HA's MQTT client and others. GIve me a few days to verify this with my command line tools, then I'll send you an update. That should avoid the confusion, @GSzabados had.
Yeah, I am working on a new implementation for this - it got delayed by my job unfortunately in the last three months (we had a big project there), but that one is through yet, so I'll be able to continue that implementation over the summer. Right now, think of the MQTT bridge as a separate frontend for what the web server does (with the cavets mentioned above). Works like a breeze in general, it just isn't what you'd expect from a MQTT interface without reading the docs.
I can understand that, it is strange at that point, one more thing that should go into the docs, I guess. It follows from the MQTT-is-an-alternative-for-HTTP thing. Right now, for anything you do just switch it from the web UI and take the complete command, that the web UI sends to the BSB-LAN and put it into the MQTT topic.
Yeah, that's often a problem with numeric constants. On the other hand, any automation is specific for a given setup anyway. I wouldn't change anything in the current MQTT implementation, to keep it in line with the web interface along with updated docs to go along with it. I will give this problem a few thoughts when I'm back on the MQTT code base, we should be able to address this in the extended approach with a deep topic structure. I have to fully understand how the options come together, but there should be a solution even to that one. At least if we say, that the indexes apply only to the current setup. Honestly, I wouldn't assume that I can transfer any automation to a new heater as-is anyway, give how wide the range of supported devices is. So some adjustment should be expected here. Greetings, Torben |
Beta Was this translation helpful? Give feedback.
-
Now I want create an MQTT momentary push button for Push DHW. |
Beta Was this translation helpful? Give feedback.
-
/1603=1 |
Beta Was this translation helpful? Give feedback.
-
@proasnet The syntax is simply Here is an example from my Home Assistant condfiguration that works: - service: mqtt.publish
data:
topic: 'BSB-LAN'
payload: 'S700=3' |
Beta Was this translation helpful? Give feedback.
-
I create a MQTT button
But, if I use |
Beta Was this translation helpful? Give feedback.
-
http://192.168.0.150/S1603=1 |
Beta Was this translation helpful? Give feedback.
-
First of all, this seems to refer to this issue/discussion here: #513 @proasnet: In chapter 2.2.1 you see all the possible settings from the webconfig explained. The 3rd one is write access.. |
Beta Was this translation helpful? Give feedback.
-
@fredlcore Is 1603 still DHW push..? |
Beta Was this translation helpful? Give feedback.
-
Probably not in his BSB_LAN_custom_defs.h |
Beta Was this translation helpful? Give feedback.
-
1603 I have not in a DHW category. |
Beta Was this translation helpful? Give feedback.
-
QAA70? I guess/hope you mean QAA75 - QAA70 would be at a LMU64+OCI420 btw... |
Beta Was this translation helpful? Give feedback.
-
Yes, your system may have it, but doesn't advertise it in the dump that the heater generates. Then there is no way for me to generate that parameter in the BSB_LAN_custom_defs.h that I create for each user. You can copy the relevant lines from the BSB_LAN_custom_defs.h from version 2.2 or use the BSB_LAN_custom_defs.h from 2.2 alltogether, but as I said, we don't recommend that. |
Beta Was this translation helpful? Give feedback.
-
May I ask, what is your use case with the DHW Push? And does your controller supports it physically? As I remember the DHW button has to be pressed long and then it does a push for DHW, if it is supported physically. And I think your nominal max shouldn't be the same as your nominal temp. But if I am.wrong then @1coderookie will correct me. |
Beta Was this translation helpful? Give feedback.
-
Hello, I would like to ask at this moment if the project can already send DHW push? And if so, is it necessary to have BSB_LAN_custom_defs.h generated again? |
Beta Was this translation helpful? Give feedback.
-
Today I updated BSB LAN to 3.0.4 version and very importand is: |
Beta Was this translation helpful? Give feedback.
I struggled a bit more an have found the right syntax.
@fredlcore - by any chance do you know what is the difference between the On and the Eco option? I guess it must be related to the reduced temperature and the schedule of the reduced temperature, but I am just guessing.