OTGW mobile application via MQTT Client "Thehomeremote"

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

Moderator: hvxl

OTGW mobile application via MQTT Client "Thehomeremote"

Postby cyril » Sun Nov 12, 2017 2:50 pm

Hi all!
I had an idea to make mobile application for otgw. If you cannot organize remote access to you home network it's good oportunity to use mqtt functionalty of the otmonitor and any free mqtt broker. Open progect thehomeremote.com has mqtt client and lets you made you own mobile application for iphone and android. You can see how I've solve this task.
1. Go to cloudmqtt.com, register and create instance. Then click to instance details and copy server name, port and login/password.
Image

2. Go to mqtt config page of the otmonitor and paste copied settings. Also change data format to "Unformatted".
Image

Then you have to restart otmonitor and check changes of the config file.
3. Now you can check sending of the mqtt messages. If you install mqttlens addon for chrome browser, click new connection and insert login/password, server and port, insert "#" in topic and press "subscribe" you can see all messages, received by broker.
Image

4. Now you should download Home Remote Designer from thehomeremote.com and open one of atteched files.
Image

5. Click "Devices", "Sources", "otmonitor" and you should see connection properties in right half of screen. Insert login/password, server and port from cloudmqtt.com account and save you .hrp file
5. Send this file to you mobile phone by email, dropbox or any other way.
6. Download Thehomeremote application from appstore or google play.
7. On android: open downloaded application, choose "settings", "restore" and choose your .hrp file. On iphone: click to .hrp file, choose "open with" and choose "Thehomeremote" application.
8. Now you should see one of this screens, depends you choose before.
Image

Image
Attachments
hrp_files.zip
hrp files
(65.6 KiB) Downloaded 20 times
cyril
Starting Member
Starting Member
 
Posts: 25
Joined: May 2017

Re: OTGW mobile application via MQTT Client "Thehomeremote"

Postby adriaanhendrik » Mon Jan 29, 2018 5:37 pm

Great work Cyril.!
I have installed your OrangePi setup from the other thread and today i managed to install this neat solution on my iphone.
It shows the data from the OTGateway but i cannot change the temp with the arrows. It says : Cannot increment the value"
Is that normal or should i upgrade my pricing plan with MQTT ?

[update 31-01-2018]
Allright I found the solution to my problem. I had removed the entry for the: ' events/central_heating/otmonitor/setpoint ' between the two arrows in the otmonitor_outside.hrp doc, because i did not like the number there. That caused the issue of the increment value fault. After copying it back from your file it did work but first i had to change the setpoint from my MQTT webUI. Only then could i see the changes on my iPhone screen...

During my quest for faults in the otmonitor-outside.hrp doc i came upon another issue that did not work. The outside temperature was not reacting.
This time i discovered that in the variable Outside_temperature there was a wrong statement. The function called for: events/central_heating/otmonitor/outside
It should have been: events/central_heating/otmonitor/outsidetemperature
After changing that, the indication of the outside temperature finally worked too. So please adapt your template files for the otmonitor-outside.hrp

Best Regards,
Ad
adriaanhendrik
Starting Member
Starting Member
 
Posts: 5
Joined: December 2017

Re: OTGW mobile application via MQTT Client "Thehomeremote"

Postby cyril » Thu Feb 15, 2018 4:33 pm

otmonitor-json-pub.zip
hrp file
(17.17 KiB) Downloaded 13 times
adriaanhendrik wrote:Great work Cyril.!
I have installed your OrangePi setup from the other thread and today i managed to install this neat solution on my iphone.
It shows the data from the OTGateway but i cannot change the temp with the arrows. It says : Cannot increment the value"
Is that normal or should i upgrade my pricing plan with MQTT ?

[update 31-01-2018]
Allright I found the solution to my problem. I had removed the entry for the: ' events/central_heating/otmonitor/setpoint ' between the two arrows in the otmonitor_outside.hrp doc, because i did not like the number there. That caused the issue of the increment value fault. After copying it back from your file it did work but first i had to change the setpoint from my MQTT webUI. Only then could i see the changes on my iPhone screen...

During my quest for faults in the otmonitor-outside.hrp doc i came upon another issue that did not work. The outside temperature was not reacting.
This time i discovered that in the variable Outside_temperature there was a wrong statement. The function called for: events/central_heating/otmonitor/outside
It should have been: events/central_heating/otmonitor/outsidetemperature
After changing that, the indication of the outside temperature finally worked too. So please adapt your template files for the otmonitor-outside.hrp

Best Regards,
Ad


Hi, Ad! Sorry for long waitening. I was away. Thank you for advice about outside temperature. I have not outside temperature sensor, therfore I can't check it. I will fix it in shot time. About changing setpoint.
If you press arrow, it can increment only integer value. If you see something else between arrows, it can't increment it. In my case it so, but may be different depends the thermostat. You can try another way. Change data format on your otmonitor mqtt config page to "Standart JSON", download attached hrp file and try to change setpoint. Also, please don't mess variables 'action' and 'event'. Action is a variable, which carry data about current changed value, but 'event' is a result of changing, received from thermostat. For example, If you change and publish actions/otmonitor/setpoint it will changes immediately and persist all time. But events/central_heating/otmonitor/setpoint is a current setpoint of the thermostat and it will changes only after thermostat changes it and otmonitor learns about it and publish it via mqtt. Therefore, it sounds strange you wrote about entry events/central_heating/otmonitor/setpoint, because variable between arrows is a Remote_override_room_setpoint (actions/otmonitor/setpoint). It's internal mqtt variable, arrow uses it, performing incremention.
Best regards, Kirill.
cyril
Starting Member
Starting Member
 
Posts: 25
Joined: May 2017


Return to Opentherm Gateway Forum

Who is online

Users browsing this forum: No registered users and 1 guest