Page 5 of 6
Re: CO2 Sensors
Posted: Wed Mar 16, 2016 9:48 am
by AshaiRey
Aaahhhaa!
Till now i just didn't notice the 2 in CO2
Thanx for pointing this out to me.
Re: CO2 Sensors
Posted: Sun Apr 03, 2016 9:21 pm
by Sparkman
esschenk wrote:Hello,
Ok, only my program skills are not so good.
So I look in to another way to put the sensor output in to Homeseer.
Thanks for repley
Ed
Hi Ed,
In case you don't have yours working yet, I have received my sensor and was able to get its values into HomeSeer using a JSON command. See here for more details:
http://board.homeseer.com/showthread.ph ... ost1238267.
Cheers
Al
Re: CO2 Sensors
Posted: Mon Apr 04, 2016 12:05 pm
by stefxx
AshaiRey wrote:Aaahhhaa!
Till now i just didn't notice the 2 in CO2
Thanx for pointing this out to me.
Nonetheless, I would welcome a similar CO sensor as well. Or a combined CO/CO2 sensor?

Re: CO2 Sensors
Posted: Mon Apr 04, 2016 8:04 pm
by esschenk
Hi Al,
Thanks for the example for Json.
But iam a, no no with this kind of stuf.
Can you explane how i can get this in Homeseer.
What i have done so far.
The Wifi connection is working.
OK
setWifiAlquinxxxxxxx
Connecting to: "Alquin", "xxxxxxx"
received:OK
In the sensor i have set the url to.
http://192.168.1.11:2234/myservice?co2=%s&id=vAir
How can i get the Json command in Homeseer!!.
Thanks for the Explanation.
Ed
Re: CO2 Sensors
Posted: Mon Apr 04, 2016 8:27 pm
by raymonvdm
I did not yet find the json commands for HS3, however i did find some example for domoticz
https://www.domoticz.com/forum/viewtopi ... 860#p81138
However i found out this
Code: Select all
htpp://ipadresss:port/JSON?request=controldevicebyvalue&ref=3570&value=%s (3570 is the device id of your virtual device)
Re: CO2 Sensors
Posted: Mon Apr 04, 2016 9:01 pm
by Phaeton
That's indeed how it works!
Re: CO2 Sensors
Posted: Mon Apr 04, 2016 9:19 pm
by vlast3k
i have also created a small page on configuring it with domoticz, if this would help...
https://github.com/vlast3k/simple-co2-m ... ntegration
Re: CO2 Sensors
Posted: Mon Apr 04, 2016 9:46 pm
by esschenk
Hello,
Ok, i understand the http:
But how can I read this in Homeseer.
Must I make a script or a event to read the URL!!!
Sorry but I have nothing done with Json.
And I cant find any examples in The Help file from Homeseer.
Thanks in advanced
Ed
Re: CO2 Sensors
Posted: Mon Apr 04, 2016 10:21 pm
by raymonvdm
- Create a virtual device in HomeSeer (http://ip:port/deviceutility and press the green + in the rightside upper corner)
- Remember the Reference ID (for example 1036)
- Use this link in your webbrowser to test (htpp://ipadresss:port/JSON?request=controldevicebyvalue&ref=1036&value=15252
- Check the device value in HomeSeer (it should be 15252)
- If it is working use this link in your CO2 device (htpp://ipadresss:port/JSON?request=controldevicebyvalue&ref=1036&value=%s
Note: I did not get it working yet
Code: Select all
192.168.110.35:8080/JSON?request=controldevicebyvalue&ref=762&value=0
192.168.110.35:8080/JSON?request=controldevicebyvalue&ref=762&value=100
Is switching between on and off but i cannot enter en custom value (yet)
Re: CO2 Sensors
Posted: Mon Apr 04, 2016 10:48 pm
by mhn
I use Device string for custom values. I can't remember why. But your problem could be the reason.

Re: CO2 Sensors
Posted: Mon Apr 04, 2016 10:56 pm
by raymonvdm
mhn wrote:I use Device string for custom values. I can't remember why. But your problem could be the reason.

Could you give me "your url" to understand the issue ?
Re: CO2 Sensors
Posted: Tue Apr 05, 2016 4:46 am
by Sparkman
raymonvdm wrote:- Create a virtual device in HomeSeer (http://ip:port/deviceutility and press the green + in the rightside upper corner)
- Remember the Reference ID (for example 1036)
- Use this link in your webbrowser to test (htpp://ipadresss:port/JSON?request=controldevicebyvalue&ref=1036&value=15252
- Check the device value in HomeSeer (it should be 15252)
- If it is working use this link in your CO2 device (htpp://ipadresss:port/JSON?request=controldevicebyvalue&ref=1036&value=%s
Note: I did not get it working yet
Code: Select all
192.168.110.35:8080/JSON?request=controldevicebyvalue&ref=762&value=0
192.168.110.35:8080/JSON?request=controldevicebyvalue&ref=762&value=100
Is switching between on and off but i cannot enter en custom value (yet)
This is all correct, but you need to configure the Status Text portion of the Status Graphics tab similar to what I have shown in the thread on the HS board.
Cheers
Al
Re: CO2 Sensors
Posted: Tue Apr 05, 2016 11:53 am
by raymonvdm
Aha found it, and it is working. To bad that you cannot make it a status only device (prevent control using app or webinterface)
http://board.homeseer.com/showpost.php? ... ostcount=2
Re: CO2 Sensors
Posted: Tue Apr 05, 2016 12:39 pm
by Phaeton
You can use values if you add All possible values to the device in hs. Otherwise you het An error. I prefere to use the value instead of string for numbers. But you have to add the possible values (in a range)
Re: CO2 Sensors
Posted: Tue Apr 05, 2016 8:18 pm
by Sparkman
Yes, unfortunately JSON does not work with status only device, but it's possible to create a simple ASP page instead of using JSON and then pass the value that way.
Cheers
Al