Page 1 of 1

Get data from device

Posted: Wednesday 19 December 2018 1:00
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

Re: Get data from device

Posted: Wednesday 19 December 2018 1:15
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

Re: Get data from device

Posted: Sunday 23 December 2018 15:15
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 :-(