Code: Select all
domoticz.devices('Costs T1').dump()
Which is the right one?
Moderator: leecollings
Code: Select all
domoticz.devices('Costs T1').dump()
Code: Select all
local lat = dz.settings.location.latitude
local long = dz.settings.location.longitude
Code: Select all
/json.htm?type=command¶m=getsettings
That's the one.
Code: Select all
"Location": {
"Latitude": "52.260183",
"Longitude": "6.714728"
},
Code: Select all
domoticz.log('domoticz.settings.location.latitude : '..domoticz.settings.location.longitude)
Code: Select all
"CostEnergy": "0.2752",
"CostEnergyR1": "0.1650",
"CostEnergyR2": "0.1235",
"CostEnergyT2": "0.2335",
"CostGas": "1.2153",
"CostWater": "0.9000",
Code: Select all
domoticz.log('domoticz.settings.CostEnergyT2 : '..domoticz.settings.costEnergyT2, domoticz.LOG_INFO)
Of course I can.habahabahaba wrote: ↑Sunday 08 December 2024 12:53 So why dont you want to take them from json answer ?
Users browsing this forum: No registered users and 0 guests