Air quality sensor not added

Moderator: leecollings

User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post 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
Quality outlives Quantity!
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: Air quality sensor not added

Post 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/
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: Air quality sensor not added

Post by Flopp »

I am using Domoticz 2.4440 on Windows 7
User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post by gizmocuz »

Why you use a voltage sensor as rain sensor ?
I will add an Dust sensor (ug/m3)
Quality outlives Quantity!
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Air quality sensor not added

Post 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.
User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post 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
Quality outlives Quantity!
D'rMorris
Posts: 138
Joined: Thursday 01 May 2014 9:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands - Sittard
Contact:

Re: Air quality sensor not added

Post 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.
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Air quality sensor not added

Post 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!
User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post by gizmocuz »

You can update it like any device... The svalue is the value (float)
Quality outlives Quantity!
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Air quality sensor not added

Post 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.
User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post 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
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post by gizmocuz »

New beta version in 15 minutes (#4938), now udevice should work
Quality outlives Quantity!
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Air quality sensor not added

Post 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!
Last edited by Raspberry Piet on Friday 11 March 2016 21:47, edited 1 time in total.
User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post 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)
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post 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 ?
Quality outlives Quantity!
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: Air quality sensor not added

Post 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)
User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post by gizmocuz »

should not be, you should get a new device
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post by gizmocuz »

Hope to receive my dust sensor in 2 weeks...
Quality outlives Quantity!
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: Air quality sensor not added

Post by Flopp »

Ok, now I saw that it has not reported since I upgrade. I will restart dust sensor and see what happens
User avatar
gizmocuz
Posts: 2492
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Air quality sensor not added

Post 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
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest