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.

Moderators: leecollings, remb0

Justmenl
Posts: 4
Joined: Monday 30 March 2015 17:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Multi value custom sensor

Post by Justmenl »

I love domoticz and applaud the develpment team.

I know we keep asking for more and more ...

Would it be possible to create a custom sensor with more than one value like the thermometer/hygrometer combo?
This way we can create bandwith sensors with up- and download speeds in one graph or other combination sensors like lightning with number of discharges and distance in one graph.

The sensor could then be filled by scripts using json or mqtt.

Regards,

Justme
Raspberry Pi B+ Domoticz 2.2357
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Multi value custom sensor

Post by ben53252642 »

+1, I'd combine my internet usage upload and download custom sensors into a single custom sensor.
Screen Shot 2017-02-01 at 6.43.33 am.png
Screen Shot 2017-02-01 at 6.43.33 am.png (173.91 KiB) Viewed 12905 times
viewtopic.php?f=63&p=117531#p117531

Would really appreciate this feature.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
chatainsim
Posts: 101
Joined: Wednesday 25 March 2015 10:46
Target OS: Linux
Domoticz version: v4.11307
Location: France
Contact:

Re: Multi value custom sensor

Post by chatainsim »

ben53252642 wrote:+1, I'd combine my internet usage upload and download custom sensors into a single custom sensor.

Screen Shot 2017-02-01 at 6.43.33 am.png
viewtopic.php?f=63&p=117531#p117531

Would really appreciate this feature.
Same for me !
And for other sensors too like my Mi Flora.

It would be very nice !

And btw dev make a really good work !
mraichura
Posts: 13
Joined: Friday 16 December 2016 4:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Rajkot, IN
Contact:

Re: Multi value custom sensor

Post by mraichura »

Same here. Although I'm using ISP's bandwidth page and node-js scrap-it module + mqtt to post data to Domoticz.

Thanks dev for such an awesome platform.
Attachments
Domoticz.png
Domoticz.png (33.19 KiB) Viewed 12836 times
1 x RASPBERRY PI 1 MODEL B+ running Domoticz since June 2016
1 x RASPBERRY PI 3 MODEL B running Domtoicz since August 2017
Damnet
Posts: 14
Joined: Friday 24 February 2017 20:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Multi value custom sensor

Post by Damnet »

+1 would really like that!
blauwebuis
Posts: 331
Joined: Wednesday 21 December 2016 9:11
Target OS: Raspberry Pi / ODroid
Domoticz version: current
Contact:

Re: Multi value custom sensor

Post by blauwebuis »

Couldn't groups kind of fullfill this idea?

I recently created a wireframe for a usability redesign.
https://www.domoticz.com/forum/viewtopi ... =8&t=16255

In it I still had devices as horizontal blocks. But I now think it would be way easier if anything on the dashboard can scale arbitrairily in height. A masonry javascript could then stack everything together optimally.

If a number of things are grouped, then the display of that group could show an interface that is is smart about what is inside that group.

- Only sensors: show sensor values in a list.
- 3 sensors and a switch: show sensor values and a toggle button.
- 4 buttons: show 1 toggle button.
- 3 buttons and one slider: show 1 toggle button and 1 slider.
etc
Justmenl
Posts: 4
Joined: Monday 30 March 2015 17:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Multi value custom sensor

Post by Justmenl »

@blauwebuis

I don't know if the groups from your proposal could do this. I for one would like to see the sensors details combined. So I can see multiple values in one graph like you can do with the temperature and see correlations.

But with the temperature, although you can do this, you need to "reprogram" the settings each time you request them.

So the request for multi value custom sensors is beyond what is shown on the dashboard.
Raspberry Pi B+ Domoticz 2.2357
rickvanakkeren
Posts: 26
Joined: Thursday 03 December 2015 13:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Multi value custom sensor

Post by rickvanakkeren »

+1

I really like this suggestion!
blauwebuis
Posts: 331
Joined: Wednesday 21 December 2016 9:11
Target OS: Raspberry Pi / ODroid
Domoticz version: current
Contact:

Re: Multi value custom sensor

Post by blauwebuis »

Ah I now see I totally misunderstood what you wanted :-)
User avatar
Pepsi92
Posts: 6
Joined: Friday 03 February 2017 10:18
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Multi value custom sensor

Post by Pepsi92 »

+1 ... custom sensors (CS) with double values / axis would be great :)

This would allow us to reduce the number of CS by merging similar values into one graph. By example :
- bandwidth (upload & download)
- counters (value & percentage)
- power (watt & VA)
...
Domoticz Beta 2023.2-15636
Raspberry Pi 4 - RaspiOS Lite 64 bits Bullseye 2023-10-10
RFXCOM RFXtrx433E - Ext/1011
AEON LABS Z-Wave Plus Z-Stick GEN5
USBTIC Teleinfo module
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Multi value custom sensor

Post by Nautilus »

blauwebuis wrote: - Only sensors: show sensor values in a list.
- 3 sensors and a switch: show sensor values and a toggle button.
- 4 buttons: show 1 toggle button.
- 3 buttons and one slider: show 1 toggle button and 1 slider.
etc
Even if this is not the solution sought in this thread, I think this would be as awesome feature for the dashboard page! :)
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Multi value custom sensor

Post by devros »

+1 for Multi value custom sensor
axello2
Posts: 11
Joined: Tuesday 25 April 2017 13:03
Target OS: OS X
Domoticz version:
Contact:

Re: Multi value custom sensor

Post by axello2 »

+1
I already asked something similar in another post. Somewhere.

But in general the possibility to create graphs with flexible legenda and multiple values will be a godsend.
e.g. I have a fine-dust meter which outputs ppm for 2.5µ and 10µm particles...
ChrisP
Posts: 8
Joined: Tuesday 17 November 2015 15:33
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Multi value custom sensor

Post by ChrisP »

Hi,

I totally join the crowd to ask for such a feature.

Regarding the particule sensor, I am creating one as well that provide multiple values (PM, particule counts of various sizes) and feed Domoticz through a MQTT broker, but at the end I have so many different virtual devices that it make the analysis unreadable.

My sensor software is available here: https://github.com/ChrisP-Git/PartSense, and the hardware/3D files here: https://www.thingiverse.com/thing:2320020
bertbigb
Posts: 147
Joined: Thursday 13 August 2015 13:36
Target OS: NAS (Synology & others)
Domoticz version: beta
Location: Netherlands
Contact:

Re: Multi value custom sensor

Post by bertbigb »

+1
I would love to have such a type of multiple value sensor.
It would solve the problem of all clustered pages full of sensors.
Also it would make it easier to implement homebrew sensors with EspEasy or what so ever.
Best regards Bert

Synology DS1517+ - DSM 6.2
Raspberry PI2-B, Raspberry Nano - Raspberry PI3 - model B
Xiaomi Gateway - Philips HUE Lights - Zwave - RFXCom(E) with KaKu and other 433MHz devices - Yeelight Lights - Toon
MaikelK
Posts: 41
Joined: Saturday 01 November 2014 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Multi value custom sensor

Post by MaikelK »

I would also love to have the option for multi value sensor.

I'm now measuring my floorheating water in and out temperature and calculate the delta T(temp difference) and would love to push these into 1 sensor and thus graph. Im now cluttering my Temperature tab with 5 lines of in, out and delta T values.
korniza
Posts: 157
Joined: Thursday 27 August 2015 18:12
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6028
Location: Greece
Contact:

Re: Multi value custom sensor

Post by korniza »

+1 I like to get a custom multi sensors device. I face the issue with a fridge that I want to get as "device" in one place. For example the door of fridge was recognized as switch, internal temp/hum found on temperature tab and power usage on utility tab....what a mess!
>>>> Google Home <<<<<
SBC: Odroid XU4 * Raspberry Pi2 * banana Pi v1
Peripherals: rfxtrx433E, aeon z-stick gen5, bluetooth dongles
Extended Software packages: Xeoma (video NVR), FHEM (extra home automation software)
bluepi

Re: Multi value custom sensor

Post by bluepi »

Another +1 for custom sensor with multiple values
inzuno
Posts: 13
Joined: Wednesday 22 November 2017 9:50
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Lyon FR
Contact:

Re: Multi value custom sensor

Post by inzuno »

+1

I use a DSM501 dust sensor sending PM10 and PM2.5 to domoticz.
It runs on a Wemos D1 mini with custom ESPeasy using plugin 114.

Thanks!
"I never make the same mistake twice. I make it like five or six times, you know, just to be sure."
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Multi value custom sensor

Post by febalci »

+1
something like P1 Smart Meter device which can hold 6 values. But instead of:

Code: Select all

typedef struct _tP1Power {
	uint8_t len;
	uint8_t type;
	uint8_t subtype;
	uint32_t powerusage1;
	uint32_t powerusage2;
	uint32_t powerdeliv1;
	uint32_t powerdeliv2;
	uint32_t usagecurrent;
	uint32_t delivcurrent;
	int32_t ID;
	_tP1Power()
	{
		len = sizeof(_tP1Power) - 1;
		type = pTypeP1Power;
		subtype = sTypeP1Power;
		ID = 1;
		powerusage1 = 0;
		powerusage2 = 0;
		powerdeliv1 = 0;
		powerdeliv2 = 0;
		usagecurrent = 0;
		delivcurrent = 0;
	}
} P1Power;
it can hold customnumber1, customnumber2, text1, switch1 at the same time with configurable units?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest