Custom Sensor Value

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Custom Sensor Value

Post by emme »

Ciao,

is there a way to get the value from a Custom sensor without using the .rawData[1] function?
the wiki shows that only .sensorType, .sensorUnit, .updateCustomSensor(<value>) are supported.... .value simply does not work for me

ciao
M
The most dangerous phrase in any language is:
"We always done this way"
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Custom Sensor Value

Post by dannybloe »

You can use mySensor.state as well. Note that it is a string value.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

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