Calculate with gas value toon

Moderator: leecollings

Post Reply
User avatar
phoenixblue
Posts: 76
Joined: Friday 25 November 2016 11:20
Target OS: Windows
Domoticz version:
Contact:

Calculate with gas value toon

Post by phoenixblue »

Hi,

I want to calculate with the day usage of gas that is coming from the Toon readout.
Only when I want to use this value of gas I'm getting this error:

Code: Select all

2017-03-26 18:49:31.526 Error: EventSystem: in Split usage gas: [string "commandArray = {} ..."]:12: attempt to concatenate global 'Gas' (a nil value) 
After this error I have insert an print command -> print ("Status Gas: "..Gas) to check what's inside this Gas device but get the same nil value.

Code: Select all

2017-03-26 18:49:51.519 Error: EventSystem: in test gas: [string "commandArray = {} ..."]:4: attempt to concatenate global 'g' (a nil value) 


But my day amount for now is 2.55m3 so there must be something higher then nil.
Knipsel.PNG
Knipsel.PNG (13.81 KiB) Viewed 325 times
Update: After some testing I receive the total gas amount with print('Gas'..otherdevices_svalues['Gas']) but stil not getting tot day usage.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest