642 - A custom numeric virtual sensor Topic is solved

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

Post Reply
jmleglise
Posts: 192
Joined: Monday 12 January 2015 23:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: FRANCE
Contact:

642 - A custom numeric virtual sensor

Post by jmleglise »

Hi,

I would like to vote to this suggestion : http://www.domoticz.com/forum/tracker.php?p=2&t=642

I have the same need that this member. I think that a simple agnostic Virtual sensor that can display only a numeric decimal value should be the most important instead of creating a lot of specific sensor.

ideally with, in settings a blank field to write the unit and of course , with the history log.

For example, I need unit that are missing today :
- degree for the solar data script.
- minutes for the waze script.
- octa (cloud layer in n/8)

Cheers to the developpers ! continue the great work !
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
BobS
Posts: 15
Joined: Friday 05 June 2015 11:49
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Rotterdam, NL
Contact:

Re: 642 - A custom numeric virtual sensor

Post by BobS »

Would be great!

And if it's not to much a user selectable icon.
paulD
Posts: 16
Joined: Wednesday 20 January 2016 14:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 642 - A custom numeric virtual sensor

Post by paulD »

Yes, this is a must have.

I would use it for weight unit. (KG).
alexsh1
Posts: 169
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: 642 - A custom numeric virtual sensor

Post by alexsh1 »

Yes, I would be excellent!
User avatar
gizmocuz
Posts: 2482
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: 642 - A custom numeric virtual sensor

Post by gizmocuz »

Please provide a git pull request
Quality outlives Quantity!
Pedro
Posts: 2
Joined: Friday 11 March 2016 0:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4937
Contact:

Re: 642 - A custom numeric virtual sensor

Post by Pedro »

I am new here. Thank you for this nice tool.

Coming from FHEM I am missing a feature to customize “virtual device” and showing small float values in the log.
I would like to show radiation in µSv/h but I am not able to show values like 0,05.
It seems that the log can only handle small decimal values. I could change SI prefix to handle this as work around, but it is not used to show nSv/h.
What am I doing wrong?

Should I use variables? And how can I create a device from a variable to show a log?
Pedro
Posts: 2
Joined: Friday 11 March 2016 0:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4937
Contact:

Re: 642 - A custom numeric virtual sensor

Post by Pedro »

Pedro wrote:I am new here. Thank you for this nice tool.

Coming from FHEM I am missing a feature to customize “virtual device” and showing small float values in the log.
I would like to show radiation in µSv/h but I am not able to show values like 0,05.
It seems that the log can only handle small decimal values. I could change SI prefix to handle this as work around, but it is not used to show nSv/h.
What am I doing wrong?

Should I use variables? And how can I create a device from a variable to show a log?
Found the solution using "custom sensor" of new beta version
jmleglise
Posts: 192
Joined: Monday 12 January 2015 23:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: FRANCE
Contact:

Re: 642 - A custom numeric virtual sensor

Post by jmleglise »

I close this thread, It's include since the #4937 beta.

=> Create a virtual sensor / type : custom sensor
You can choose the label (Y axis in graph log) and an icon.

Well done. Thank you Gizmocuz.
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest