Firmware version 4.0 has been released.

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

mike7
Member
Member
Posts: 102
Joined: Mon Dec 02, 2013 8:45 am

Re: Firmware version 4.0 has been released.

Post by mike7 »

hvxl wrote:The type of the value is always the same for a particular parameter, so it's a waste of bandwidth to transmit that information every time (I understand MQTT was designed to keep the messages small). But obviously JSON isn't the most appropriate format if bandwidth is a consideration. So I've added two more JSON formats to otmonitor 4.1b1.
Small messages are for not powerful platform to save energy and cpu, for example for gateway itself. Thank you for more formats, will test.
hvxl wrote:Re: Prefix for the topic: I'm not sure that's allowed. The DomoMQTT specification says "The events topic has the following format: events/device_type/device_id/property".
Currently it's not actual for me, but we can expand the standard a bit, prefix can be empty :wink: .
hvxl wrote:I don't understand what you are trying to say regarding the unprocessed messages and using http interface for command. If you want me to change something there, please explain a bit more.
I just want to get messages in the following form:
T00110000
BC0110000
T9014A73B
R80190000
B40191B00
T80001300

otmonitor is processing messages very well, but other applications can use messages from gateway for additional processing, for ex. if chsetpoint is overwritten. That topic should be not persistent.

About http command interface, I just use it and I don't need mqtt interface for it. With "http get" request I have got report in transactional way in time of request.

Thank you very much, I can't expect such high level of support.
sincze
Starting Member
Starting Member
Posts: 47
Joined: Sat Jun 14, 2014 7:18 pm
Location: Breda

Re: Firmware version 4.0 has been released.

Post by sincze »

Would it be possible to add "http://cmdirect.nl/nl/registreren" as an SMS Gateway as well to the OpenTherm Monitor?

Connection can be made via

HTTP GET

example: https://secure.cm.nl/smssgateway/cm/gat ... My+company

or POST,

HTTPS://secure.cm.nl/smssgateway/cm/gateway.ashx

<?xml version="1.0"?>
<MESSAGES>
<AUTHENTICATION>
<PRODUCTTOKEN>de7c7df3-81ca-4d1e-863d-95a252120321</PRODUCTTOKEN>
</AUTHENTICATION>
<MSG>
<FROM>My company</FROM>
<TO>+31600000000</TO>
<BODY>Example message text</BODY>
</MSG>
</MESSAGES>

So seems not that dificult. :D

And If you register with "Bedrijfsnaam" OTGW you'll receive 100 free text messages.

Sandor
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Firmware version 4.0 has been released.

Post by hvxl »

sincze wrote:Would it be possible to add "http://cmdirect.nl/nl/registreren" as an SMS Gateway as well to the OpenTherm Monitor?
This has been added to otmonitor 4.1b2. I have not fully tested it because I couldn't find any information on how they may (ab)use the mobile phone numbers they receive through this service, so I was hesitant to provide mine.
Schelte
mike7
Member
Member
Posts: 102
Joined: Mon Dec 02, 2013 8:45 am

Re: Firmware version 4.0 has been released.

Post by mike7 »

Schelte,

thank you for the "Message" mqtt topic. Now I have a what to do on my vacation :D
Dickuk
Starting Member
Starting Member
Posts: 15
Joined: Fri Nov 02, 2012 10:31 pm

Re: Firmware version 4.0 has been released.

Post by Dickuk »

Hi Schelte,

A while back you added the functionality to retain the ignored commands during an upgrade using otmonitor, mine were put in so long ago that I can't remember what ones are in there !

Is there any chance of having the otmonitor software report these to the screen or a logfile after/during the upgrade process as I presume it must read them in to put them into the new software?

Thanks and keep up the good work !

Richard
mike7
Member
Member
Posts: 102
Joined: Mon Dec 02, 2013 8:45 am

Re: Firmware version 4.0 has been released.

Post by mike7 »

Schelte,

"GatewayReset" signal doesn't rise after GW=R command.
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Firmware version 4.0 has been released.

Post by hvxl »

mike7 wrote:"GatewayReset" signal doesn't rise after GW=R command.
It does, except when you have the data format set to "Standard JSON". Will fix that.
mqtt.patch.zip
Patch
(434 Bytes) Downloaded 375 times
Schelte
mike7
Member
Member
Posts: 102
Joined: Mon Dec 02, 2013 8:45 am

Re: Firmware version 4.0 has been released.

Post by mike7 »

Schelte,

I can't to set working configuration with SR, UI pairs for ids 48 and 49, I've got "Unk-DataId" response:

Code: Select all

07:57:35.606245  Command (via websocket from 192.168.7.24:50156): PR=A
07:57:35.644649  PR: A=OpenTherm Gateway 4.0.1

07:57:53.396780  Command (via websocket from 192.168.7.24:50156): SR=48:65,35
07:57:53.425729  SR: 48:65/35

07:57:55.830245  T00300000  Read-Data   DHW setpoint boundaries: 0 0
07:57:56.006625  B40304123  Read-Ack    DHW setpoint boundaries: 65 35

07:58:00.831687  T80310000  Read-Data   Max CH setpoint boundaries: 0 0
07:58:01.014204  B4031551E  Read-Ack    Max CH setpoint boundaries: 85 30

07:58:14.584192  Command (via websocket from 192.168.7.24:50156): UI=48
07:58:14.599679  UI: 48

07:58:55.832924  T00300000  Read-Data   DHW setpoint boundaries: 0 0
07:58:55.858676  R80190000  Read-Data   Boiler water temperature: 0.00
07:58:56.013932  B40194200  Read-Ack    Boiler water temperature: 66.00
07:58:56.044430  AF0300000  Unk-DataId  DHW setpoint boundaries: 0 0

07:59:00.832772  T80310000  Read-Data   Max CH setpoint boundaries: 0 0
07:59:01.001270  B4031551E  Read-Ack    Max CH setpoint boundaries: 85 30

07:59:38.697252  Command (via websocket from 192.168.7.24:50158): SR=49:85,30
07:59:38.725827  SR: 49:85/30

07:59:53.596742  Command (via websocket from 192.168.7.24:50158): UI=49
07:59:53.612557  UI: 49

07:59:55.834364  T00300000  Read-Data   DHW setpoint boundaries: 0 0
07:59:55.864399  R80190000  Read-Data   Boiler water temperature: 0.00
07:59:56.019465  B40194200  Read-Ack    Boiler water temperature: 66.00
07:59:56.041428  AF0300000  Unk-DataId  DHW setpoint boundaries: 0 0

08:00:00.833613  T80310000  Read-Data   Max CH setpoint boundaries: 0 0
08:00:00.864347  R801A0000  Read-Data   DHW temperature: 0.00
08:00:01.008174  B401A3300  Read-Ack    DHW temperature: 51.00
08:00:01.032872  A70310000  Unk-DataId  Max CH setpoint boundaries: 0 0

08:00:55.835855  T00300000  Read-Data   DHW setpoint boundaries: 0 0
08:00:55.864358  R801A0000  Read-Data   DHW temperature: 0.00
08:00:56.006939  B401A3300  Read-Ack    DHW temperature: 51.00
08:00:56.034373  AF0300000  Unk-DataId  DHW setpoint boundaries: 0 0

08:01:00.835186  T80310000  Read-Data   Max CH setpoint boundaries: 0 0
08:01:00.859613  R80190000  Read-Data   Boiler water temperature: 0.00
08:01:01.014902  BC0194300  Read-Ack    Boiler water temperature: 67.00
08:01:01.039794  A70310000  Unk-DataId  Max CH setpoint boundaries: 0 0
For id 10 it's working fine.

BTW, otmonitor Summary page shows correct values
mike7
Member
Member
Posts: 102
Joined: Mon Dec 02, 2013 8:45 am

Re: Firmware version 4.0 has been released.

Post by mike7 »

Returning to GatewayReset signal, I think this signal shouldn't be set to be retained.
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Firmware version 4.0 has been released.

Post by hvxl »

mike7 wrote:Returning to GatewayReset signal, I think this signal shouldn't be set to be retained.
I agree. That's why it isn't. This is what mosquitto -v reports (note the r0):

1404380828: Received PUBLISH from xxxxxx (d0, q1, r0, m5, 'events/central_heating/otmonitor/gatewayreset', ... (28 bytes))
Schelte
mike7
Member
Member
Posts: 102
Joined: Mon Dec 02, 2013 8:45 am

Re: Firmware version 4.0 has been released.

Post by mike7 »

hvxl wrote: I agree. That's why it isn't. This is what mosquitto -v reports (note the r0):
Sorry, I can't check that, can't rise the signal :wink:
Thank you
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Firmware version 4.0 has been released.

Post by hvxl »

mike7 wrote:I can't to set working configuration with SR, UI pairs for ids 48 and 49, I've got "Unk-DataId" response
That's correct. I initially only implemented the SR command for message IDs the gateway didn't handle specially. Since it is using the values from MsgID 48 and 49, the SR function doesn't work for these message IDs. You may be able to add this functionality by replacing the 2nd and 3rd "return" of the MessageID48 and MessageID49 subroutines by "goto WordResponse" (untested).
Schelte
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Firmware version 4.0 has been released.

Post by hvxl »

mike7 wrote:Sorry, I can't check that, can't rise the signal :wink:
Why not? Haven't you applied the patch I provided?

You can also use a different format than "Standard JSON" and then it's just a matter of sending a "GW=R" command.
Schelte
mike7
Member
Member
Posts: 102
Joined: Mon Dec 02, 2013 8:45 am

Re: Firmware version 4.0 has been released.

Post by mike7 »

hvxl wrote: You may be able to add this functionality by replacing the 2nd and 3rd "return" of the MessageID48 and MessageID49 subroutines by "goto WordResponse" (untested).
hvxl wrote:Why not? Haven't you applied the patch I provided?
Moment to start to lean how to install build system for gateway and tcl for raspbian ... will try
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Firmware version 4.0 has been released.

Post by hvxl »

mike7 wrote:Moment to start to lean how to install build system for gateway and tcl for raspbian ... will try
You make it sound complicated. You are aware that instructions are available in the readme.txt file included in the gateway sources and at http://otgw.tclcode.com/otmonsrc.html?
Schelte
Post Reply

Return to “Opentherm Gateway Forum”