Multi value custom sensor

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.
TDer
Posts: 7
Joined: Saturday 24 June 2017 20:34
Target OS: -
Domoticz version:
Location: Ten Boer
Contact:

Re: Multi value custom sensor

Post by TDer » Saturday 30 December 2017 2:50

This is exactly what I was looking for and too bad there isn't such a multi value custom sensor available yet :(
Testing here with SDS011 and ESPeasy on a Wemos D1.
I was hoping to get some graphs during newyear, but now I only can graph the PM2.5.

thorian
Posts: 30
Joined: Tuesday 29 September 2015 19:50
Target OS: Raspberry Pi
Domoticz version: 2.2563
Location: Poland
Contact:

Re: Multi value custom sensor

Post by thorian » Sunday 14 January 2018 22:07

Untill it arrvies I'm using the rules in ESP Easy for ESP8266 to send both PM 2,5 and PM10 to Domoticz:

Code: Select all

 SendToHTTP 192.168.1.45,8888,/json.htm?type=command&param=udevice&idx=201&nvalue=0&svalue=[SDS011#PM25] 
 SendToHTTP 192.168.1.45,8888,/json.htm?type=command&param=udevice&idx=202&nvalue=0&svalue=[SDS011#PM10] 
 
Where 201 and 202 are Custom sensors.

MaikelK
Posts: 34
Joined: Saturday 01 November 2014 14:51
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Multi value custom sensor

Post by MaikelK » Sunday 14 January 2018 22:16

How does this work?

User avatar
McMelloW
Posts: 193
Joined: Monday 20 November 2017 18:01
Target OS: Raspberry Pi
Domoticz version: V3.beta
Location: Harderwijk, NL
Contact:

Re: Multi value custom sensor

Post by McMelloW » Thursday 18 January 2018 21:50

+1

Love to have Custom Sensor accepting multi values. ie number / text etc

Any body working on this already ?
Greetings McMelloW

Spitfire
Posts: 24
Joined: Thursday 29 December 2016 10:16
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Multi value custom sensor

Post by Spitfire » Friday 02 February 2018 17:18

Another +1,

Very useful for bandwith coverage, Mi flora flower sensors etc...

PieterS
Posts: 36
Joined: Wednesday 31 May 2017 16:06
Target OS: NAS (Synology & others)
Domoticz version: V3.9483
Location: Netherlands
Contact:

Re: Multi value custom sensor

Post by PieterS » Sunday 11 February 2018 14:29

+1

Should be nice feature!

miroslavpetrov
Posts: 23
Joined: Wednesday 03 February 2016 14:35
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Multi value custom sensor

Post by miroslavpetrov » Monday 12 February 2018 14:00

thorian wrote:
Sunday 14 January 2018 22:07
Untill it arrvies I'm using the rules in ESP Easy for ESP8266 to send both PM 2,5 and PM10 to Domoticz:

Code: Select all

 SendToHTTP 192.168.1.45,8888,/json.htm?type=command&param=udevice&idx=201&nvalue=0&svalue=[SDS011#PM25] 
 SendToHTTP 192.168.1.45,8888,/json.htm?type=command&param=udevice&idx=202&nvalue=0&svalue=[SDS011#PM10] 
 
Where 201 and 202 are Custom sensors.
Can you please share the entire Rule? I am not sure how to make the execution of the request every xx seconds.
Domoticz on Raspberry Pi 3 with HomeBridge.
RFXCOM, Xiaomi Smart Home, Broadlink RM3, Shelly Smart Bulbs, EasyESP custom sensors.

Patrykwaw
Posts: 1
Joined: Wednesday 27 December 2017 1:43
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Warsaw, PL
Contact:

Re: Multi value custom sensor

Post by Patrykwaw » Wednesday 14 February 2018 16:03

I use exactly the same method to send values from PMS5003

Code: Select all

On System#Boot do
   timerSet,1,10
  endon

On Rules#Timer=1 do 
  GPIO,12,0
  timerSet,2,60
endon

On Rules#Timer=2 do
    SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command&param=udevice&idx=130&nvalue=0&svalue=[dust#PM10]
    SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command&param=udevice&idx=133&nvalue=0&svalue=[dust#PM1]
    SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command&param=udevice&idx=132&nvalue=0&svalue=[dust#PM25]
 GPIO,12,1
  timerSet,1,1800
endon
After system boot wait 10 seconds for wifi connections etc.

Code: Select all

On System#Boot do
   timerSet,1,10
  endon
Switch on power for dust sensor and wait 60 seconds for proper data reading

Code: Select all

On Rules#Timer=1 do 
  GPIO,12,0
  timerSet,2,60
endon
Send values to domoticz and switch off power

Code: Select all

On Rules#Timer=2 do
    SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command&param=udevice&idx=130&nvalue=0&svalue=[dust#PM10]
    SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command&param=udevice&idx=133&nvalue=0&svalue=[dust#PM1]
    SendToHTTP xxx.xxx.xxx.xxx,80,/json.htm?type=command&param=udevice&idx=132&nvalue=0&svalue=[dust#PM25]
 GPIO,12,1
Set Timer one for 1800 sec

Code: Select all

  timerSet,1,1800
endon

PatrykMilewski
Posts: 5
Joined: Sunday 28 January 2018 15:28
Target OS: Raspberry Pi
Domoticz version: Beta 3.8
Location: Gdańsk
Contact:

Re: Multi value custom sensor

Post by PatrykMilewski » Tuesday 06 March 2018 11:01

+1

I need this for custom virtual temperature measurements

angelus1753
Posts: 7
Joined: Sunday 01 April 2018 14:16
Target OS: NAS (Synology & others)
Domoticz version: 3.9056
Location: Netherlands
Contact:

Re: Multi value custom sensor

Post by angelus1753 » Wednesday 11 April 2018 9:39

+1

(new to this, and surprised it isn't there already)
DS-218+ with Jadahl Domoticz

Qcvictor
Posts: 36
Joined: Wednesday 08 April 2015 3:13
Target OS: Linux
Domoticz version: Beta
Location: Canada
Contact:

Re: Multi value custom sensor

Post by Qcvictor » Sunday 29 April 2018 21:56

+1 because I'm in metric and my wife in imperial, will be great to display temperature Celsius/Fahrenheit in the custom sensor :P

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests