Search found 17 matches

by ernorv
Wednesday 05 April 2017 6:23
Forum: OpenTherm gateway
Topic: 2 raspberrys and ot gateway challenge
Replies: 5
Views: 2110

Re: 2 raspberrys and ot gateway challenge

Why not simply run the otmonitor on the gateway version and let your central one connect directly to the tcp port exposed by otmonitor? No need for a second Domoticz for just this reason.
by ernorv
Thursday 02 February 2017 8:12
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@jake Voila #!/usr/bin/node /* Make a small listener that Domoticz can connect to as if it was the real otmonitor application. Then relay the messages between OTGW and Domoticz such that otmonitor is still fully functional. author: ernorv v2.0 - rewrote the OpenTherm parts to be splitted into separa...
by ernorv
Wednesday 11 January 2017 23:40
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@heelderpeel
not an expert, but let's see what we can do:
When you are in putty, and typing 'node otgwNODE.js' works fine for you, can you show me the output of the following commands:

pwd
ls -als
which node
by ernorv
Tuesday 10 January 2017 23:22
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@heelderpeel Not being an expert in Supervisor, I do start it with that one. I created in /etc/supervisor/conf.d a file caller otgwNode.conf, with the contents as below. It works fine for me (note: take care of the path and file name of the program, just however you've named it) pi@raspberrypi:/etc/...
by ernorv
Tuesday 27 December 2016 16:22
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@jake Nice!

wrt the two versions of Node, no clue, guess you need a rapsberry/debian expert for that.
by ernorv
Tuesday 27 December 2016 13:22
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@jake for both parts where you commented out, look also two lines above and do the same ;) for your case you do not need these representations, they are just there fore genericity.... will think a bit how to check if the function exists....... hmmm - edit - v0.12.x is not strange, don't worry, just ...
by ernorv
Tuesday 27 December 2016 12:26
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@jake looks like your node version again, maybe update the node version? (google that, is what I do usually) for now, comment those lines out: place a '//' in front of it, they are there twice (two lines below the first one, somewhere around line number 288) have a look at: http://thisdavej.com/upgr...
by ernorv
Tuesday 27 December 2016 12:04
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@jake yes you are right, there is a dependecy on OTGW to be already running :oops: therefore now with actual checking if the port is opened, without throwing an error, and if no connection could be made to the OTGW, simply reschedule after 10 seconds. This should be much better (also in my own setup...
by ernorv
Monday 26 December 2016 19:51
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@jake let's see if we can get this done this XMas ;) I have changed it a little, you can now tell which data field is to be replaced by 'fieldnumberInPsOutputToReplace'. As there are 25 of them in the PS1 output, choose wisely (and yes, I've filled in the default fieldnumber 16 now (+1 :mrgreen: ) (...
by ernorv
Monday 26 December 2016 10:02
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@jake Probably has to do with the version of NodeJS. However I have replaced them with more common definitions below. Still keep in mind to set the replaceID56WithSolar to true instead of the default false :D #!/usr/bin/node /* Make a small listener that Domoticz can connect to as if it was the real...
by ernorv
Thursday 22 December 2016 23:05
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@jake It took a bit more fiddling around than I thought, but I do think the following should work... At least I now have read parts of the Opentherm Interface Specifications :ugeek: keep in mind to set 'replaceID56WithSolar' to true in the script below. (kept it at false to prevent others to acciden...
by ernorv
Thursday 22 December 2016 21:19
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@jake Do you have an example of how the Solar boiler is reported in the messages of otmonitor?
by ernorv
Thursday 22 December 2016 7:27
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

I think you would be able to do that with some programming, but ... some points that cross my mind here: The output of PS1 is also parsed by Domoticz, so creating a specific version of PS1 at the otmonitor out side also requires a specific parsing at Domoticz How is that type of data visible if you ...
by ernorv
Wednesday 21 December 2016 21:01
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

@heelderpeel have a look at the updated code, should be a lot user friendlier without that kind of errors. I tried the script from ernorv on my RPI but I have some errors that I do not get solved.. Looking at the error, node can not open the TCP port, probably because somebody else is already using ...
by ernorv
Sunday 20 November 2016 9:43
Forum: OpenTherm gateway
Topic: Send OTGW command from bash script
Replies: 7
Views: 3313

Re: Send OTGW command from bash script

1) create a dummy device in the hardware tab 2) create a virtual device of the type 'Switch' 3) find the switch (normally it is already at your switches tab) and click Edit 4) under 'On Action' you can now program e.g. a setpoint to be used by the OTGW: e.g. http://raspberrypi:8081/command?TC=19 and...
by ernorv
Sunday 13 November 2016 12:02
Forum: OpenTherm gateway
Topic: OTmonitor and Domoticz parallel access to OTGW
Replies: 41
Views: 12238

Re: OTmonitor and Domoticz parallel access to OTGW

I actually wanted 2 things to happen while Domoticz is connected: - otmonitor fully functional (PS=1 and PS=0 dilemma) - use TC (permanent setting) instead of TT (temporary setting) of the controlled temperature. Hence I decided to make a small node.js program (you can install node.js on your raspbe...