My Config Collection (OH 1.8 ONLY!) - Might help Someone

Hi Jen.

These should be pretty up to date. I havent really done anything new with it. Kinda set it and forgot it :wink:

Cheers,
Jay

I have Honeywell wifi thermostat too,
Installed the binding jar manully,
org.openhab.binding.honeywellwifithermostat-2.0.0-SNAPSHOT.jar
it works occasionally with openhab 2.2.0-SNAPSHOT #1003. But for the most time, the Things is "Status: OFFLINE - COMMUNICATION_ERROR Failed to submit changes to Honeywell site."
As Honeywell Android app works well, so this binding + openhab is not critical to me…

But this binding offers only 3 options at Channel / System mode: heat, cool, or off, no Auto/ EMHEAT. options. My HVAC was usually set at Auto.

Do you have this issue with your honeywell wifi theremosate? Can we set a [MAP(theromastat.map):%s] at item + transform/theromastat.map file?

The honey well site will ban your connections if you are connecting too frequently. Look at my code for timers/delays and methodology. Should help you, I have no issues with mine. Not sure about the maps as i had no need for them.

Dear Mr. Ewgor Dragos, Can you share the Latest configuration files of your Burglar Alarm system, you have been working on. I am trying to configure one based on your suggestion. Thank you in advance, Ragothaman R.

Hi, I’m learning your “HoneyWell Wifi Thermostat scripts for status” at post 4.
what is this location? http://10.1.100.23:10005/rest/items/IndTemp
Are you running the openhab at server http://10.1.100.23 ?
Why don’t you just leave it at script folder?
It seem you save the $powerstatus" also at http://10.1.100.23:10005/rest/items/HostBatteryPercentage
Thank you

Hello,

Yea, 10.1.100.23 was my openhab host. /rest is the rest api built into openhab. The rest api is the default location to have scripts like bash etc update your items in openhab.

Yes $powerstatus is from a bash script that talks to the openhab API.

“Why don’t you just leave it at script folder?” Not sure what you mean by this.

Hello,

For anyone looking for a cheap hosted IPv6 VM to play with check out http://ecare.cidcomm.com/cart.php

Hey Jay…
How do you controle wether to use geofencing or not. I doubt it´s optimal going for a walk and returning home, and then the garage door is opening? How to prevent that from happening?

Hi iam trying your scripts for the honeywell thermostat but i get the error below

11:25:08.790 [ERROR] [clipse.smarthome.io.net.exec.ExecUtil] - couldn't execute commandLine '/etc/tstat'
java.io.IOException: Cannot run program "/etc/tstat": error=2, No such file or directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) [?:?]
	at java.lang.Runtime.exec(Runtime.java:620) [?:?]
	at java.lang.Runtime.exec(Runtime.java:450) [?:?]
	at java.lang.Runtime.exec(Runtime.java:347) [?:?]
	at org.eclipse.smarthome.io.net.exec.ExecUtil.executeCommandLine(ExecUtil.java:63) [118:org.eclipse.smarthome.io.net:0.10.0.oh230]
	at org.eclipse.smarthome.model.script.actions.Exec.executeCommandLine(Exec.java:43) [139:org.eclipse.smarthome.model.script:0.10.0.oh230]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation(XbaseInterpreter.java:1085) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation(XbaseInterpreter.java:1060) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._invokeFeature(XbaseInterpreter.java:1046) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeFeature(XbaseInterpreter.java:991) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.invokeFeature(ScriptInterpreter.java:143) [139:org.eclipse.smarthome.model.script:0.10.0.oh230]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate(XbaseInterpreter.java:901) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate(XbaseInterpreter.java:864) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.doEvaluate(XbaseInterpreter.java:223) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.doEvaluate(ScriptInterpreter.java:219) [139:org.eclipse.smarthome.model.script:0.10.0.oh230]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:203) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate(XbaseInterpreter.java:446) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.doEvaluate(XbaseInterpreter.java:227) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.doEvaluate(ScriptInterpreter.java:219) [139:org.eclipse.smarthome.model.script:0.10.0.oh230]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:203) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.evaluate(XbaseInterpreter.java:189) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.smarthome.model.script.runtime.internal.engine.ScriptImpl.execute(ScriptImpl.java:82) [141:org.eclipse.smarthome.model.script.runtime:0.10.0.oh230]
	at org.eclipse.smarthome.model.rule.runtime.internal.engine.ExecuteRuleJob.execute(ExecuteRuleJob.java:67) [138:org.eclipse.smarthome.model.rule.runtime:0.10.0.oh230]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [109:org.eclipse.smarthome.core.scheduler:0.10.0.oh230]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [109:org.eclipse.smarthome.core.scheduler:0.10.0.oh230]
Caused by: java.io.IOException: error=2, No such file or directory
	at java.lang.UNIXProcess.forkAndExec(Native Method) ~[?:?]
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) ~[?:?]
	at java.lang.ProcessImpl.start(ProcessImpl.java:134) ~[?:?]
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[?:?]
	... 28 more


Where do i have to place the tstat script? Actually the scripts!!
Thank you in advance.
ps. i am running openhab 2.3

Also when i am running the script tstat i get some errors.

Getting Data from MyTotalControl Website
Checking Indoor Temp
curl: (3) Illegal characters found in URL
28
Checking Heat Setpoint
curl: (3) Illegal characters found in URL
curl: (3) Illegal characters found in URL
21
Checking Heat On/Off Status
curl: (3) Illegal characters found in URL
1
Checking Fan Status
curl: (3) Illegal characters found in URL
None
Checking Hold Status
curl: (3) Illegal characters found in URL
1080
: numeric argument required

Any help appreciated.

Hi John,

These scripts are all for Debian Linux. are you running Debian Linux?

Also these scripts and code are for OH 1.8. 2.3 is completely redesigned so they most likely wont work.

I am on a raspberry with rasspbian jessie installed. The scripts seem to work individually but i get those errors.

Did you put all the custom scripts in the /etc folder? Its saying it cannot see them there.

Nothing. Wherever i try to put it i get the same error.

16:50:00.095 [ERROR] [clipse.smarthome.io.net.exec.ExecUtil] - couldn't execute commandLine '/etc/tstat'
java.io.IOException: Cannot run program "/etc/tstat": error=2, No such file or directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) [?:?]
	at java.lang.Runtime.exec(Runtime.java:620) [?:?]
	at java.lang.Runtime.exec(Runtime.java:450) [?:?]
	at java.lang.Runtime.exec(Runtime.java:347) [?:?]
	at org.eclipse.smarthome.io.net.exec.ExecUtil.executeCommandLine(ExecUtil.java:63) [118:org.eclipse.smarthome.io.net:0.10.0.oh230]
	at org.eclipse.smarthome.model.script.actions.Exec.executeCommandLine(Exec.java:43) [139:org.eclipse.smarthome.model.script:0.10.0.oh230]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation(XbaseInterpreter.java:1085) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation(XbaseInterpreter.java:1060) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._invokeFeature(XbaseInterpreter.java:1046) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeFeature(XbaseInterpreter.java:991) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.invokeFeature(ScriptInterpreter.java:143) [139:org.eclipse.smarthome.model.script:0.10.0.oh230]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate(XbaseInterpreter.java:901) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate(XbaseInterpreter.java:864) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.doEvaluate(XbaseInterpreter.java:223) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.doEvaluate(ScriptInterpreter.java:219) [139:org.eclipse.smarthome.model.script:0.10.0.oh230]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:203) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate(XbaseInterpreter.java:446) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.doEvaluate(XbaseInterpreter.java:227) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.doEvaluate(ScriptInterpreter.java:219) [139:org.eclipse.smarthome.model.script:0.10.0.oh230]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:203) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.evaluate(XbaseInterpreter.java:189) [158:org.eclipse.xtext.xbase:2.12.0.v20170519-0752]
	at org.eclipse.smarthome.model.script.runtime.internal.engine.ScriptImpl.execute(ScriptImpl.java:82) [141:org.eclipse.smarthome.model.script.runtime:0.10.0.oh230]
	at org.eclipse.smarthome.model.rule.runtime.internal.engine.ExecuteRuleJob.execute(ExecuteRuleJob.java:67) [138:org.eclipse.smarthome.model.rule.runtime:0.10.0.oh230]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [109:org.eclipse.smarthome.core.scheduler:0.10.0.oh230]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [109:org.eclipse.smarthome.core.scheduler:0.10.0.oh230]
Caused by: java.io.IOException: error=2, No such file or directory
	at java.lang.UNIXProcess.forkAndExec(Native Method) ~[?:?]
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) ~[?:?]
	at java.lang.ProcessImpl.start(ProcessImpl.java:134) ~[?:?]
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[?:?]
	... 28 more

When i try to run it from shell with

sudo bash tstat

the script runs but i get some errors in the script

Getting Data from MyTotalControl Website
Checking Indoor Temp
curl: (3) Illegal characters found in URL
28
Checking Heat Setpoint
curl: (3) Illegal characters found in URL
curl: (3) Illegal characters found in URL
21
Checking Heat On/Off Status
curl: (3) Illegal characters found in URL
1
Checking Fan Status
curl: (3) Illegal characters found in URL
None
Checking Hold Status
curl: (3) Illegal characters found in URL
1080
: numeric argument required

Looks like permissions partially. Run OH as root or change the folder permissions. chmod a=rwx /etc

I think i solved the problem with executeCommandLine(“sudo /etc/openhab2/scripts/tstat”) in the rule.

Now i am still having problem with refreshing the values in openhab as i get the error below when the script is executed.

Getting Data from MyTotalControl Website
Checking Indoor Temp
curl: (3) Illegal characters found in URL
28
Checking Heat Setpoint
curl: (3) Illegal characters found in URL
curl: (3) Illegal characters found in URL
21
Checking Heat On/Off Status
curl: (3) Illegal characters found in URL
1
Checking Fan Status
curl: (3) Illegal characters found in URL
None
Checking Hold Status
curl: (3) Illegal characters found in URL
1080
: numeric argument required

As you can see it retrieves the values from totalconnect but the values dont appear in openhab interface

Also when i try to send a curl post from terminal

curl --header "Content-Type: text/plain" --request POST --data "31" http://192.168.1.250:8080/rest/items/IndTemp

The item receives it normaly!!!
I am loosing my mind here!!!

Could be the incoming value from honeywell is messed up and feeding it to the script and breaking it.