Page 2 of 5

Re: Intergas Incomfort Heater control

Posted: Thursday 11 February 2016 14:08
by rizo
Username: admin
Password: intergas

Re: Intergas Incomfort Heater control

Posted: Wednesday 17 February 2016 21:31
by jkaavee
TheSnitz wrote:YES :D :D :D

I Fix my problem myself :-)

After you have copieed,changed the scripts and if the scripts are running(with the error i had), then you have to manually update(adjustment) the 2 Temp sensors each with a different value. (because 0 and 0 will be a nil value :-) )

Now i have to changed the "debug option" in te script to false so my log file will be cleaner.

Please explain.
I had it running once but now again those two errors.

Regards,

Jacob

Re: Intergas Incomfort Heater control

Posted: Saturday 20 February 2016 20:27
by jkaavee
Hi,

I only can make it run if I use as virtual sensor therm setpoint for all three virtual sensors.
My understanding was 1 virtual sensor with therm setpoint and the other two as virtual sensor "temperatuur"
If i do that I get the errors with "the known and here mentioned nil errors"
I'm confused. What am I doing wrong?

Regards,

Jacob

Re: Intergas Incomfort Heater control

Posted: Sunday 21 February 2016 21:32
by jkaavee
Problem solved.
Because for some unknown reason I could not set a different value manually in the two temp sensors, I used the following api command:

[url]http://domoticzip:port/json.htm?type=command&param=udevice&idx=IDX&nvalue=0&svalue=TEMP[/url]

replace IDX with device id and TEMP for a value you want to set.

After that the script worked fine! :D

Re: Intergas Incomfort Heater control

Posted: Saturday 27 February 2016 21:08
by tonadam
Cool I found you guys. Didn't release others into domoticz where using the "Intergas Incomfort Heater control" as well. The reviews for the IOS app where not that promising, but it has been working out reasonably well. Before I started using domotics, I used a self written perl script to be able to read and set the temperature from the command line.

Now testing the LUA scripts. Basic functions seem to work. Many thanks for publishing these Jeroen, that saves me a lot work.

Btw, my gateway reports the following firmware:

Firmware version: IC3-ICN-V1.06
Build date: Oct 20 2014 00:08:00

Does anybody know if there is a more recent version, and if so how to update it?

I did see a couple of times that the script started to loop on:

2016-02-27 18:50:20.216 LUA: Difference between Virtual thermostat and set temp
2016-02-27 18:50:20.216 LUA: Virtual thermostat is updated later then physical thermostat
2016-02-27 18:50:20.216 LUA: Calculated value to set temperature (used by lan2rf gateway): 90
2016-02-27 18:50:20.216 LUA: URL to change temperature setpoint: http://X.X.X.X/data.json?heater=0&setpo ... rmostat=0×

Somehow it was unable to set the temp to whatever it thought it should be.
Looking at the website

Room setpoint 1: would still be at the old temp.
Room setpoint override 1: and would be set correctly by the LUA script. (room_temp_set_1_lsb)

So it kept on trying/looping to set the temperature. Need to look further into that. First will try the lame approach of rebooting the Intergas controller. ;)

Re: Intergas Incomfort Heater control

Posted: Monday 21 March 2016 19:15
by benotje
i have the same error

LUA: Difference between Virtual thermostat and set temp
LUA: Lastupdated temperature is later then virtual thermostat setpoint

when i set the real thermostat or intergas app then the error appears

when i set de virtual thermostat manual the same de error is gone

do somebody no how i can solve it

Re: Intergas Incomfort Heater control

Posted: Monday 13 June 2016 8:17
by anandus
For what it's worth, here is the (Dutch) API-documentation:
http://www.filedropper.com/lan2rfgatewayhttpinterface

Re: Intergas Incomfort Heater control

Posted: Monday 13 June 2016 16:46
by JeroenZeist
anandus wrote:For what it's worth, here is the (Dutch) API-documentation:
http://www.filedropper.com/lan2rfgatewayhttpinterface
Thanks. Always good to have one complete overview of the possible actions and responses.

Re: Intergas Incomfort Heater control

Posted: Thursday 21 July 2016 10:07
by benotje
i have some error somebody can fix it ??

Code: Select all

2016-07-21 10:03:40.617 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
2016-07-21 10:03:40.805 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
2016-07-21 10:03:40.973 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
2016-07-21 10:03:41.133 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
2016-07-21 10:03:41.295 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
2016-07-21 10:03:41.462 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)

Re: Intergas Incomfort Heater control

Posted: Saturday 20 August 2016 8:10
by fransiefrans
Just installed it and it seems to work.
Thank you!

Re: Intergas Incomfort Heater control

Posted: Saturday 20 August 2016 8:11
by fransiefrans
benotje wrote:i have some error somebody can fix it ??

Code: Select all

2016-07-21 10:03:40.617 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
2016-07-21 10:03:40.805 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
2016-07-21 10:03:40.973 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
2016-07-21 10:03:41.133 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
2016-07-21 10:03:41.295 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
2016-07-21 10:03:41.462 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua: ...domoticz/scripts/lua/script_device_intergasincomfort.lua:35: attempt to perform arithmetic on field '?' (a nil value)
Make sure you have the idx and device name correct. for example I named the virtual thermostat Kamer thermostaat

Code: Select all

local idxsetthermostat = 289 -- idx of the virtual thermostat in Domoticz
local thermostatname = "Kamer thermostaat" -- name of the virtual thermostat in Domoticz

Re: Intergas Incomfort Heater control

Posted: Thursday 25 August 2016 10:10
by benotje
Yes this problem is solved

but now I still have one problem, who can help me

when i set the real thermostat or intergas app then the error appears

Code: Select all

2016-08-25 09:57:59.776 LUA: Difference between Virtual thermostat and set temp
2016-08-25 09:57:59.776 LUA: Lastupdated temperature is later then virtual thermostat setpoint
2016-08-25 09:57:59.776 EventSystem: Fetching url...
2016-08-25 09:57:59.777 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_intergasincomfort.lua
when i set de virtual thermostat manual in Domoticz de error is gone

Who can help me

Re: Intergas Incomfort Heater control

Posted: Saturday 27 August 2016 12:28
by benotje
i think that the solution can be found here part of the LUA

Code: Select all

-- Functions ---------------------------------------------------------------------------------------------------function UpdateVirtualThermostat()
	if otherdevices_svalues[thermostatname] + 0.01 ~= otherdevices_svalues[currentlyset] + 0.01 then
		if debug then print ("Difference between Virtual thermostat and set temp") end
		if otherdevices_lastupdate[currentlyset] > otherdevices_lastupdate[thermostatname] then
			if debug then print("Lastupdated temperature is later then virtual thermostat setpoint") end
			commandArray[4] = {['OpenURL']=domoticzaddress..'/json.htm?param=udevice&type=command&idx='..idxsetthermostat..'&nvalue=0&svalue='..otherdevices_svalues[currentlyset]}
		elseif otherdevices_lastupdate[thermostatname] > otherdevices_lastupdate[currentlyset] then
			if debug then print("Virtual thermostat is updated later then physical thermostat") end
			SetTemperature(otherdevices_svalues[thermostatname])
		end
	end
end
but i can not find my problem

please help my  :idea:

Re: Intergas Incomfort Heater control

Posted: Tuesday 15 November 2016 8:09
by djoele
Hello,

I saw some older messages in this thread speaking about the API of InComfort.
The link provided is not working as it was a temporary link.

Does anybody have the API documentation available to share?

Kind regards,
Dennis

Re: Intergas Incomfort Heater control

Posted: Tuesday 22 November 2016 14:42
by mdehaan
Hi Jeroen,

I was able to get it all to work!
Really great stuff.
I understand you were still working on further development so I really wonder what the current status is.
Were you able to show information regarding the tap-water and maybe the pressure in the heater?

I'm really curious on my heater's behaviour when I lower the thermostat during the night for 2 degrees during 7 hours and then see how temperature in the living room evolves. Your script makes this perfectly visible!

One question remains for me. You've added a virtual switch that tells whether the module is online or not, but I'm interested in seeing when the heater is working or not. And if it is working for heater or water. And even with the percentage of power the heater is working on.
I assume this should all be possible right?
Is that also something you are planning to add?

Again, I really like this! It is much better then the standard app on my phone, so I hope you keep up the good work.

Best regards,
Marco

Re: Intergas Incomfort Heater control

Posted: Monday 28 November 2016 22:58
by JohnO
I try to add the LUA scripts to my Domoticzon Synology. I cannot reach the right directory?? Can you please give some detailed instructions in setting up the LAN2RF on Synology??

Re: Intergas Incomfort Heater control

Posted: Tuesday 29 November 2016 22:55
by JohnO
I now have the files in the right directory using busybox/telnet (CP command under Admin)
I first tried to put the files in the LUA directory using the root account, but Root access for telnet is blocked default.

I now want to figure out how to use these files within domoticz. I already setted up the correct IP adresses

Re: Intergas Incomfort Heater control

Posted: Tuesday 29 November 2016 23:17
by JohnO
Oh yes: the right path on synology is: /usr/local/domoticz/scripts

Re: Intergas Incomfort Heater control

Posted: Tuesday 29 November 2016 23:26
by JohnO
And replace the path to avoid this error:
Error: ...l/domoticz/scripts/lua/script_time_intergasincomfort.lua:36: cannot open /home/pi/domoticz/scripts/lua/JSON.lua

Re: Intergas Incomfort Heater control

Posted: Tuesday 29 November 2016 23:52
by JohnO
And with the right names assigned to the virtual sensor it is finally working!