Get data from device

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

Moderator: leecollings

Post Reply
Thelion
Posts: 54
Joined: Saturday 08 October 2016 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands
Contact:

Get data from device

Post by Thelion »

Hi,

I can't seem to get the needed data from a device.

The log shows the device is read correctly and a value is retrieved.

Code: Select all

2018-12-19 00:53:55.467 Status: dzVents: Debug: Processing device-adapter for Auto: Electric usage device adapter
2018-12-19 00:53:55.470 Status: dzVents: Debug: dzVents version: 2.4.9 
2018-12-19 00:53:55.470 Status: dzVents: Debug: Event triggers:
2018-12-19 00:53:55.470 Status: dzVents: Debug: - Device: Auto
2018-12-19 00:53:55.513 Status: dzVents: Info: Handling events for: "Auto", value: "3060.00"
2018-12-19 00:53:55.513 Status: dzVents: Info: ------ Start internal script: Opladen auto actief dz: Device: "Auto (Dummy)", Index: 232
2018-12-19 00:53:55.517 Status: dzVents: Info: ------ Finished Opladen auto actief dz 
On the 5th line the value is shown, but how can I put this value into a variable or formula? I tried using "Auto.Value", "Auto.Electric" and "auto.Usage", or a combination from these, but nothing worked.

A nudge in the correct direction would be greatly appreciated.

Regards,

Martijn
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Get data from device

Post by waaren »

Thelion wrote: Wednesday 19 December 2018 1:00 I can't seem to get the needed data from a device.
A nudge in the correct direction would be greatly appreciated.
try Auto.WhActual
and have a look at this excellent wiki
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Thelion
Posts: 54
Joined: Saturday 08 October 2016 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands
Contact:

Re: Get data from device

Post by Thelion »

waaren wrote: Wednesday 19 December 2018 1:15
Thelion wrote: Wednesday 19 December 2018 1:00 I can't seem to get the needed data from a device.
A nudge in the correct direction would be greatly appreciated.
try Auto.WhActual
and have a look at this excellent wiki
That's it! Thanks...

Pfff... How could I have overlooked that :-(
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest