Re: Thermostat Mode doesn't work anylonger?
Posted: Tuesday 09 March 2021 8:22
Thanks! I ran your script and this is the result:
2021-03-09 08:19:00.274 Status: dzVents: Info: dumpAttributes: ------ Start internal script: Individua json:, trigger: "at 08:19"
2021-03-09 08:19:00.286 Status: dzVents: Debug: dumpAttributes: Processing device-adapter for Termostato bagno (Modalita): Z-Wave mode type device adapter
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): attribute -> value
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): -- dzVents
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): type, subType -> General, Thermostat Mode
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): switchTypeValue -> 0
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): adapters -> {"Z-Wave mode type device adapter"}
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): rawData -> {}
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): hwType -> OpenZWave USB, 21
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): levelNames -> nil
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): modes -> {"Off", "Heat", "Resume"}
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes:
2021-03-09 08:19:00.286 Status: dzVents: Info: dumpAttributes: ------ Finished Individua json
2021-03-09 08:19:00.286 Error: dzVents: Error: (3.0.2) dumpAttributes: An error occurred when calling event handler Individua json
2021-03-09 08:19:00.286 Error: dzVents: Error: (3.0.2) dumpAttributes: ...icz/scripts/dzVents/generated_scripts/Individua json.lua:37: attempt to call a nil value (field 'osCommand')
As you can see there is an error when this line is executed:
local sqlResult, result = dz.utils.osCommand('sudo ' .. sqlite .. ' ' .. '-header domoticz.db "select * from deviceStatus where id = ' .. dv.idx .. '"')
Do you have some suggestion for me?
Your help is very appreciated
2021-03-09 08:19:00.274 Status: dzVents: Info: dumpAttributes: ------ Start internal script: Individua json:, trigger: "at 08:19"
2021-03-09 08:19:00.286 Status: dzVents: Debug: dumpAttributes: Processing device-adapter for Termostato bagno (Modalita): Z-Wave mode type device adapter
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): attribute -> value
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): -- dzVents
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): type, subType -> General, Thermostat Mode
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): switchTypeValue -> 0
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): adapters -> {"Z-Wave mode type device adapter"}
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): rawData -> {}
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): hwType -> OpenZWave USB, 21
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): levelNames -> nil
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes: 69: Termostato bagno (Modalita): modes -> {"Off", "Heat", "Resume"}
2021-03-09 08:19:00.286 Status: dzVents: !Info: dumpAttributes:
2021-03-09 08:19:00.286 Status: dzVents: Info: dumpAttributes: ------ Finished Individua json
2021-03-09 08:19:00.286 Error: dzVents: Error: (3.0.2) dumpAttributes: An error occurred when calling event handler Individua json
2021-03-09 08:19:00.286 Error: dzVents: Error: (3.0.2) dumpAttributes: ...icz/scripts/dzVents/generated_scripts/Individua json.lua:37: attempt to call a nil value (field 'osCommand')
As you can see there is an error when this line is executed:
local sqlResult, result = dz.utils.osCommand('sudo ' .. sqlite .. ' ' .. '-header domoticz.db "select * from deviceStatus where id = ' .. dv.idx .. '"')
Do you have some suggestion for me?
Your help is very appreciated