Homeseer Script to monitor & Control ELV MAX! Thermostats

Forum over Homeseer scripts (DUTCH forum)

Moderators: TANE, Ruud

Post Reply
wmccann
Starting Member
Starting Member
Posts: 19
Joined: Tue Mar 05, 2013 4:23 pm

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by wmccann »

Not sure what is going on but the moderator does not seem to be posting my replies!!!!

W.
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by Digit »

After you edit a post it ends up in the moderation queue again, waiting for a moderator to approve it.
And moderators can't keep an eye on the forum 24/7, so that means that sometimes you have to wait a while before it appears again.
Bastiaan
Senior Member
Senior Member
Posts: 1257
Joined: Sat May 24, 2008 11:36 am
Location: Netherlands
Contact:

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by Bastiaan »

Hi Walter, appreciate your efforts to help and share.
I got the first script (and your posting is still there), but I get connection errors.

Recap:
I have reset my whole system, got it on a fixed IP (192.168.1.180) and can do everything with it using the web interface or the remote ELV site. Guess I can see it is working fine.
Its running on an WIN7 X64 system and HS seems ok too.

I have 3 rooms , 4 thermostats and 2 wall thermostats. I have left eco switch and window switch out of the loop for security. So what is left is a simple setup.

The first part of my ini file looks like this:

[Startup]
Version=0.2
TCPAddress=192.168.1.180
TCPPort=62910
WaitSec=2
HouseCode=M
DevLocation=MAX!
CubeName=Max!Cube
ThermostatName=Max!RT
DevLocationswitched=False
Debug=2
HideStatusOK=TRUE
HideTemperatures=TRUE

[MAXDatabase]
Path=C:\Program Files (x86)\HomeSeer HSPRO\data\MAX\MAX.mdb

[Cube]
Address=
FirstDeviceCode=5
DevLocation2=ServerHok

[Thermostat1]
Address=
FirstDeviceCode=10
Settemp=0
DeviceName=

[Thermostat2]
Address=
FirstDeviceCode=15
Settemp=0
DeviceName=

With plenty of entries for those 6 + cube items

Running your script gives:
=============
Max Monitor: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
==================

and sometimes: Max Monitor: No connection could be made because the target machine actively refused it 192.168.1.180:62910

Clearly not connecting. I have checked all computers but there is no other connection active.
I have also tested with the Firewall off.

When I run the original script I usually get the cube and one or two thermostats in and thats where it stops. Really puzzling situation.
If I would not get any connection I would think the port is wrong but because the original script grabs a part of it, it seems right.
There is also no other device with the letter M.
A portscan does not deliver anymore info either.

i am out of options and thats why it has been left for a year....
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by Digit »

Bastiaan,

The Cube has a nasty behavior in that it doesn't accept connections for half an hour or so after an active connection has been disconnected the 'wrong way', e.g. pulling the LAN cable out by mistake. Maybe that's what you're experiencing. Patience.. ;)
Bastiaan
Senior Member
Senior Member
Posts: 1257
Joined: Sat May 24, 2008 11:36 am
Location: Netherlands
Contact:

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by Bastiaan »

Hey Robert,

(te) lang niet gezien ;-)

I keep the test system running for a day now and I assume the 'nasty behavior' should not occur than. It also has normal internet connection and responds to the Java app. In my point of view it should be reacting on the HS requests.
wmccann
Starting Member
Starting Member
Posts: 19
Joined: Tue Mar 05, 2013 4:23 pm

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by wmccann »

Hi,

Increase wait time to 10

Set the 2 hide settings to false

Use a different house code as you now have loads of hidden devices - had to use access to delete them!.

Post what you get if you telnet your_max_address 62910. Time how long the response takes.

W.
wmccann
Starting Member
Starting Member
Posts: 19
Joined: Tue Mar 05, 2013 4:23 pm

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by wmccann »

Hi,

Here are my ini settings:

[Startup]
Version=0.2
TCPAddress=192.168.10.9
TCPPort=62910
WaitSec=10
HouseCode='
DevLocation=Heating
CubeName=Cube
ThermostatName=Thermostat
DevLocationswitched=FALSE
Debug=0
HideStatusOK=FALSE
HideTemperatures=FALSE

[MAXDatabase]
Path=C:\Program Files (x86)\HomeSeer HSPRO\data\MAX\MAX.mdb

[Cube]
Address=
FirstDeviceCode=1
DevLocation2=ATTIC

[Thermostat1]
Address=
FirstDeviceCode=3
Settemp=0
DeviceName=Attic Valve

[Thermostat2]
Address=
FirstDeviceCode=7
Settemp=0
DeviceName=Attic Thermostat

[Thermostat3]
Address=
FirstDeviceCode=11
Settemp=0
DeviceName=Living Room Valve


Etc up to device 24

W.
Bastiaan
Senior Member
Senior Member
Posts: 1257
Joined: Sat May 24, 2008 11:36 am
Location: Netherlands
Contact:

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by Bastiaan »

Thanks for the help.

Good call about ghosted letters in de DB, never thought about that. Now I need the HS MDB password to check :-)

Anyway, steps made:
INI file adjusted. Changed the device code to %. wait time adjusted

Telnet to the device works fine. It responded with a long string. Tried it from the HS computer and from other one, both cases got an immediate response.
To make sure nothing was left connecting I did a restart of the cube, waited 10 min and retried in HS.

RUN your version. Nothing happened.

Switch back to the original 2P version:
Got a connection with the following errors: (in between all the debug strings)
Max Monitor; C2: unknown device: 03
Max Monitor; C4: unknown device: 03

and the standard one that kept me busy this year:
Max Monitor: Index was outside the bounds of the array.

I will attach the log output in txt file.

No device are made.
Attachments
HSlog1.txt.zip
(1.73 KiB) Downloaded 725 times
wmccann
Starting Member
Starting Member
Posts: 19
Joined: Tue Mar 05, 2013 4:23 pm

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by wmccann »

Hi,

I had that error, resolved by changing TCNT in the script to 100 rather than 20.

I sent you a message the other day via your website - if you want I you can setup a user for me on your homeseer and I can take a look - it is odd that my script does nothing though - send me an email with the link if you want to do this.

The mdb on homeseer only has a password when homeseer is running. Stop it and you can use access to open it!!

Regards,


W.
Bastiaan
Senior Member
Senior Member
Posts: 1257
Joined: Sat May 24, 2008 11:36 am
Location: Netherlands
Contact:

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by Bastiaan »

Interesting, set the TCNT to 100, deleted the devices and run the "óriginal" 2P version.
Again the cube and some devices are made but it stopped in the middle.

first error: Max Monitor; C4: unknown device: 03

then the log continues with the strings but ends with:

22-3-2013 18:00:50 Max_debug2 C7: response: D2034E24010115FF49454E30303434343533261E3D09071803300CFF003C493C6D4CCA47144520452045204520452045204520452045203C493C6D4CCA47144520452045204520452045204520452045203C493C6D4CCA47144520452045204520452045204520452045203C493C6D4CCA47144520452045204520452045204520452045203C493C6D4CCA47144520452045204520452045204520452045203C493C6D4CCA47144520452045204520452045204520452045203C493C6D4CCA4714452045204520452045204520452045204520
22-3-2013 18:00:50 Max_debug2 L: lenght: 148 L: response: 0C02B61B091218012400A600A80B0365800912181F2400A8000C02B6400912180418000000880B0336E709121800180000000B0335A609121800180000000B034E24091218052300C000
22-3-2013 18:00:50 Max_debug1 L: no Thermostat, Length L: command= 12!
22-3-2013 18:00:50 Max_debug2 L: Device 2: 0B0365800912181F2400A800
22-3-2013 18:00:50 Max_debug1 L: 0B0365800912181F2400A800 IST: 16,8 Mode: 00 HEX: 00A8
22-3-2013 18:00:50 Max_debug1 L: address: 222592 tvalid: 1 Terror: 0 Tanswer: 0 mode: Auto Valve: 31% Temp: 18 date: --
22-3-2013 18:00:50 Max_debug1 L: no Thermostat, Length L: command= 12!
22-3-2013 18:00:50 Max_debug2 L: Device 4: 0B0336E70912180018000000
22-3-2013 18:00:50 Max_debug1 L: 0B0336E70912180018000000 IST: 0 Mode: 00 HEX: 0000
22-3-2013 18:00:50 Max_debug1 L: address: 210663 tvalid: 1 Terror: 0 Tanswer: 0 mode: Auto Valve: 0% Temp: 12 date: --
22-3-2013 18:00:50 Max_debug2 L: Device 5: 0B0335A60912180018000000
22-3-2013 18:00:50 Max_debug1 L: 0B0335A60912180018000000 IST: 0 Mode: 00 HEX: 0000
22-3-2013 18:00:50 Max_debug1 L: address: 210342 tvalid: 1 Terror: 0 Tanswer: 0 mode: Auto Valve: 0% Temp: 12 date: --
22-3-2013 18:00:50 Max_debug2 L: Device 6: 0B034E24091218052300C000
22-3-2013 18:00:50 Max_debug1 L: 0B034E24091218052300C000 IST: 19,2 Mode: 00 HEX: 00C0
22-3-2013 18:00:50 Max_debug1 L: address: 216612 tvalid: 1 Terror: 0 Tanswer: 0 mode: Auto Valve: 5% Temp: 17,5 date: --
22-3-2013 18:00:50 debugn4 s: 721661219
22-3-2013 18:00:50 debugn4 s: 521066319
22-3-2013 18:00:50 debugn4 s: 322259221,5
22-3-2013 18:00:50 Max_debug0 Create Radiator Thermostat Device: %25
22-3-2013 18:00:50 Max_debug1 Firmware:
22-3-2013 18:00:50 Max_debug1 Firmware:
22-3-2013 18:00:50 Error Max Monitor: Object reference not set to an instance of an object.

Nice to send me a mail, but I have about a hundred sites under my control, which one did you use? :-)

I will send you a PM here.
wmccann
Starting Member
Starting Member
Posts: 19
Joined: Tue Mar 05, 2013 4:23 pm

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by wmccann »

got your PM, I can't reply but my script is now working on your box

you have wall thermostats and valves under the "floor".

Let me know if you want me to build out the script more.

I use events to monitor the "boost" to switch on the heating if boost is switched on the thermostat as well as events to set the boost via homeseer/hs touch.

W.
wmccann
Starting Member
Starting Member
Posts: 19
Joined: Tue Mar 05, 2013 4:23 pm

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by wmccann »

if you want to email me directly you can get me at wmccann at wmbsystems dot com

W.
Bastiaan
Senior Member
Senior Member
Posts: 1257
Joined: Sat May 24, 2008 11:36 am
Location: Netherlands
Contact:

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by Bastiaan »

Yes looks great now, thanks a lot.

Can you explain what the problem was?

If you feel like it, yes I am curious about your other option too.

Bastiaan

PS my email address was in the PM too.
wmccann
Starting Member
Starting Member
Posts: 19
Joined: Tue Mar 05, 2013 4:23 pm

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by wmccann »

Bit more on the script:

I monitor the wall thermostats, if the mode value changes to 1 then boost has been pressed in that room. I switch on the boiler in this case.

%99 I use to see if the connection worked - if it doesn't it increases the value by 1. if it does it resets it to 1. I have an event that will switch off the cube (it is on an appliance adapter) if the value hits 5 or more (so I can use it via the max software without the box being reset). Note I refresh every 2 minutes.

I also have events to switch on the boost.

Note your room numbers are the last digit in the "type" e.g. Wall Thermostat-IEQ0492910/177728/18/2 The backroom is room 2 - used for the commands.

e.g. BLB_Max_monitor 02.vb("Main","s:|2|23|b") this will switch the room 2 (backroom) to boost mode - you have to give the boost temperature (23 in this case)

Hope this helps

W.
wmccann
Starting Member
Starting Member
Posts: 19
Joined: Tue Mar 05, 2013 4:23 pm

Re: Homeseer Script to monitor & Control ELV MAX! Thermostats

Post by wmccann »

Hi,

1) there was a space in the options for the main script, this caused the script to go into the s: part.
2) for some reason I have to put in reply=reply & readstring(client) , your setup does not need it - could be due to the number of devices I have - 23. if you have issues one you add all your items back in you should try re-enabling it.

Also if you clear your cube down, you must delete all the devices as the order will be potentially different (e.g. wall thermostat first then valve rather than the other way around...).

Walter.
Post Reply

Return to “Homeseer Scripts Forum”