Page 2 of 4

Re: Air quality sensor not added

Posted: Wednesday 09 March 2016 19:07
by gizmocuz
I dont think you understand what i am suggesting:

- first, instead of co2-ppm on the axis, this is your ug/m3, i know it is not nice, but the values should be correct

Now, when we can not use ug/m3 but ppm for also the dust sensor then:
- we can rename the air quality sensor as 'air sensor', this is only the type, you can give it 'any' name you want, like 'dust'
- we could rename the y-axis 'co2/ppm' to 'ppm' only

What sensor are you using for dust ?
is it the one like:
http://www.aliexpress.com/item/PM2-5-Du ... 81bcfe3710

Re: Air quality sensor not added

Posted: Wednesday 09 March 2016 20:20
by Flopp
Yes, my values are correct.
"Problem" is the axis label(unit) and legend on bottom.
Yes, I have named it Dust but at bottom is says co2.
Is it not possible to create a new type of sensor which is storing data when I use CHILD_ID_DUST, V_LEVEL?
See my attached pitures.
Image
Light level, this is set by me and desrcribe the localtion of sensor. Lux Last 7 Days set by system, left and bottom Lux as Unit. Good
Image
Dust, set by me should be location but I only have one at the moment but later I will rename this to Dust_garage. Air Quality Last 7 Days this is what type of sensor it is. Left says co2(ppm) not correct for this sensor should have been ug/m3 in my case, bottom co2, should have been Dust
Image
Left side can remove co2() so it only tell you the unit, rest is OK
Image
CO2 is correct but not Dust. Type Air quailty is correct but after that it should say Dust
Image
This is my Rain sensor, Regn means Rain, i only have one so i called it Regn.

I dont want to be a pain in the as and I dont decide how Domoticz shall be, I just inform how I see it.

I am using a Sharp GP2Y1010AU
https://www.sparkfun.com/datasheets/Sen ... 10au_e.pdf
https://www.sparkfun.com/products/9689
https://www.sharpsde.com/products/optoe ... Y1010AU0F/

Re: Air quality sensor not added

Posted: Wednesday 09 March 2016 21:12
by Flopp
I am using Domoticz 2.4440 on Windows 7

Re: Air quality sensor not added

Posted: Thursday 10 March 2016 7:49
by gizmocuz
Why you use a voltage sensor as rain sensor ?
I will add an Dust sensor (ug/m3)

Air quality sensor not added

Posted: Thursday 10 March 2016 8:40
by Flopp
I have also a Rain where I see mm.
Above graph is for showing how other graphs works and I am measuring voltage on all my nodes, I also send voltage % but I want to be able to plot volt from each nodes as well
Thanks, I think that is a good idea to create a new Dust sensor.

Re: Air quality sensor not added

Posted: Thursday 10 March 2016 19:45
by gizmocuz
Okey, i did not create a new dust sensor......

i created a new 'custom sensor' .... this is very alpha! But it should work...

I also modified the mysensors code, the dust sensor will create now a new custom sensor

New beta version #4937

Hope all works... the only thing i did not test was the mysensors part
Make sure 'accept new hardware' is enabled in the settings

After adding the new 'dust/custom' sensor, you can edit the sensor and select a custom icon

If possible, please give some feedback here if it's working

Re: Air quality sensor not added

Posted: Thursday 10 March 2016 21:43
by D'rMorris
epierre wrote:
The flat parts are usb issues I'm getting at the moment with the arduino as gateway... I may find a way to disable/discover the arduino on the kernel level to correct this... maybe the arduino will dye by itself anyway...
I'm having issues with my gateway as well. My nodes all work perfecly (according to Arduino monitor), but my gateway just stops working for some reason. Did you find a solution? I'm on the latest beta version. On stable version 2.xxxx everything was solid as a rock. If I can't find a solution I'm reverting back to that I think.

Re: Air quality sensor not added

Posted: Thursday 10 March 2016 21:57
by Raspberry Piet
gizmocuz wrote:Okey, i did not create a new dust sensor......

i created a new 'custom sensor' .... this is very alpha! But it should work...

I also modified the mysensors code, the dust sensor will create now a new custom sensor

New beta version #4937

Hope all works... the only thing i did not test was the mysensors part
Make sure 'accept new hardware' is enabled in the settings

After adding the new 'dust/custom' sensor, you can edit the sensor and select a custom icon

If possible, please give some feedback here if it's working
How can i update this custom sensor through API/JSON?
I tried with examples from the wiki but it doesn't update the sensor.
Although result in cli shows me:

Code: Select all

   "status" : "OK",
   "title" : "Update Device
I like the option for custom icon!

Re: Air quality sensor not added

Posted: Thursday 10 March 2016 21:58
by gizmocuz
You can update it like any device... The svalue is the value (float)

Re: Air quality sensor not added

Posted: Thursday 10 March 2016 22:22
by Raspberry Piet
Hmm... strange.

I tried:

Code: Select all

curl -s "http://127.0.0.1:8080/json.htm?type=command&param=udevice&idx=2601&svalue=123"
curl -s "http://127.0.0.1:8080/json.htm?type=command&param=udevice&idx=2601&nvalue=0&svalue=123"
the value of the custom sensor still shows 0.00 and Last seen time stays at time the sensor was added.

Re: Air quality sensor not added

Posted: Thursday 10 March 2016 22:24
by gizmocuz
Did I mention it is in very alpha stage :)
I will check what's going on....
It might be you got a new sensor/device

Re: Air quality sensor not added

Posted: Thursday 10 March 2016 22:33
by gizmocuz
New beta version in 15 minutes (#4938), now udevice should work

Re: Air quality sensor not added

Posted: Thursday 10 March 2016 22:46
by Raspberry Piet
Thanks! It is working now!
Is it somehow also possible to adjust the zero's behind the decimal?

Edit: what i meant was this:
Image

But after update today it works how i want:
Image

Thanks again!

Re: Air quality sensor not added

Posted: Friday 11 March 2016 8:10
by gizmocuz
Raspberry Piet wrote:Thanks! It is working now!
Is it somehow also possible to adjust the zero's behind the decimal?
We are going a bit of topic here, but what do you mean, but next version #4939 will go up to 4 digits (if you provide up to 4 digits)

Re: Air quality sensor not added

Posted: Sunday 13 March 2016 15:14
by gizmocuz
Flopp wrote:...
I put a lot of effort into this

It would be nice if you can tell me if all my work was for nothing, or that it is working now ?

Re: Air quality sensor not added

Posted: Sunday 13 March 2016 15:28
by Flopp
Sorry, I did the update now to 3.4958. Now it says ppm but it is still Volcraft and in graphs it says co2(ppm)

Re: Air quality sensor not added

Posted: Sunday 13 March 2016 15:42
by gizmocuz
should not be, you should get a new device

Re: Air quality sensor not added

Posted: Sunday 13 March 2016 15:42
by gizmocuz
Hope to receive my dust sensor in 2 weeks...

Re: Air quality sensor not added

Posted: Sunday 13 March 2016 15:45
by Flopp
Ok, now I saw that it has not reported since I upgrade. I will restart dust sensor and see what happens

Re: Air quality sensor not added

Posted: Sunday 13 March 2016 15:46
by gizmocuz
Make sure 'accept new devices' is enabled in the settings, and after restart of the dust sensor, check the devices tab for new devices