khenderick / esphome-opentherm

OpenTherm support for ESPHome
MIT License
14 stars 4 forks source link

add Message, CONFIGURATION, VERSION #18

Open ananyevgv opened 6 months ago

ananyevgv commented 6 months ago

Good afternoon, some boilers require messaging, otherwise they cannot be controlled:

OpenThermMessageType::READ_DATA, OpenThermMessageID::BOILER_CONFIGURATION, 0xFFFF); uint8_t SlaveMemberIDcode = respons3 >> 0 & 0xFF; OpenThermMessageType::WRITE_DATA, OpenThermMessageID::DEVICE_CONFIGURATION, SlaveMemberIDcode);

OpenThermMessageType::READ_DATA, OpenThermMessageID::BOILER_VERSION, 0); OpenThermMessageType::WRITE_DATA, OpenThermMessageID::DEVICE_VERSION, 0x013F);

khenderick commented 6 months ago

How do you mean? Are these specific messages that must be written over and over again? Or just once at startup (of the boiler I assume). How can it be detected that the messages need to be written?

ananyevgv commented 6 months ago

Before transmitting control and status information, it is recommended to exchange messages about the acceptable configuration of the slave. READ HB CONFIGURATION > WRITE LB CONFIGURATION. VERSION WRITE 0x013F

khenderick commented 6 months ago

I see, interesting. However the documents state that a MemberID code of 0 indicates a customer non-specific device, which I guess this software is. Not sure whether it's a good idea to mimic the boiler's MemberID here. Any reason why you'd to that? I'd rather just write 0.

Additionally, where do you get the 0x013F value from? Is that a specific vendor?

Reading the slave configuration already happens, to I guess that's already fine.

ananyevgv commented 6 months ago

In all the examples that I found on the Internet, such a code, unfortunately, I cannot say what it means. You can try with 0 and saw this example "master_id: 4 # default 0, baxi 4"

ananyevgv commented 6 months ago

https://github.com/Laxilef/OTGateway/wiki/Compatibility#boilers

khenderick commented 6 months ago

Maybe it makes sense to make it configurable 🤔

ananyevgv commented 6 months ago

Yes

ananyevgv commented 5 months ago

https://www.google.ru/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiGpISOrvWDAxXYFxAIHSwrCpcQFnoECBYQAQ&url=https%3A%2F%2Fwww.opentherm.eu%2Fwp-content%2Fuploads%2F2016%2F06%2FOpenTherm-Function-Matrix-v1_0.xls&usg=AOvVaw3XJSrXYb9ajTaju6RBg8_2&opi=89978449

ananyevgv commented 5 months ago

It may come in handy

ananyevgv commented 5 months ago

https://github.com/FreeBear-nc/opentherm-docs/blob/main/Data-Id%20Map.otm

ananyevgv commented 5 months ago

opentherm v2.3

ananyevgv commented 5 months ago
ananyevgv commented 5 months ago

I'm sorry, I accidentally created pach, I can't delete it.