Hello, please can someone advise me, I try the script written above, but my display shows nothing.
When I enter a command via URL, it will show up on the display.
Thanks for the help
Code: Select all
-- Send Undercot Temp
return {
on = { devices = { "Outdoor_thermometer" }},
logging = { level = domoticz.LOG_DEBUG,
marker = "Send undercot" },
execute = function(domoticz, undercot )
local baseurlESPEasy = "http://192.168.7.71/control?cmd="
domoticz.openURL({
url = baseurlESPEasy .. "7dt" .. Outdoor_thermometer,
method = "GET"
})
end
}
Device:
48 Dummy 14080 1 Outdoor_thermometer Temp LaCrosse TX3 2.7 C
LOG:
2020-02-19 06:57:59.694 Status: dzVents: Error (2.4.19): Send undercot: An error occured when calling event handler Displej-1
2020-02-19 06:57:59.694 Status: dzVents: Error (2.4.19): Send undercot: ...Domoticz\scripts\dzVents\generated_scripts/Displej-1.lua:13: attempt to concatenate global 'Outdoor_thermometer' (a nil value)
2020-02-19 06:57:59.694 Status: dzVents: Info: Send undercot: ------ Finished Displej-1
2020-02-19 06:58:02.679 EventSystem: Event triggered: Termostat-Loznice_2