Device not visible and no variable triggering
Posted: Monday 30 March 2020 21:41
I searched a while, but cannot find any hint. I'm new to Domoticz so it's more difficult for me. Also to detect the reason, so perhaps if this is not the right sub board please move my entry.
The problem 1:
I didn't find my device in any of the programming languages. And I cannot use it there. I only can find the device in device list, at counters and in the list of devices I get in the progamming view. The values are correct displayed.
I put the hardware and device to Domo with the following commands:
- --http://<ip of device>/json.htm?type=command¶m=addhardware&htype=15&port=1&name=Fronius&enabled=true
--http://<ip and port of domoticz>/json.htm?type=createvirtualsensor&idx=8&sensorname=FroniusConsumption&sensortype=248
As I workaround I put the value in my deviceAdapter in a user variable.
That I can use than in a lua script, but not in dzVent.
The problem 2: I cannot use dzVent
II followed the wiki tutorial for dzVent, but get not trigger. No trigger on the above described device, nor the user variable. I also tried to set a global variable in a lua script to trigger, but this fails also. I tried it as a numeric value and a string value:
I tried Tasmota devices. They trigger as expected!
I tried timer. They trigger as expected!
Whats wrong. I hope I get any help - Thanks
The problem 1:
I didn't find my device in any of the programming languages. And I cannot use it there. I only can find the device in device list, at counters and in the list of devices I get in the progamming view. The values are correct displayed.
I put the hardware and device to Domo with the following commands:
- --http://<ip of device>/json.htm?type=command¶m=addhardware&htype=15&port=1&name=Fronius&enabled=true
--http://<ip and port of domoticz>/json.htm?type=createvirtualsensor&idx=8&sensorname=FroniusConsumption&sensortype=248
As I workaround I put the value in my deviceAdapter in a user variable.
Code: Select all
commandArray['Variable:nGrid'] = tostring(nGrid);The problem 2: I cannot use dzVent
II followed the wiki tutorial for dzVent, but get not trigger. No trigger on the above described device, nor the user variable. I also tried to set a global variable in a lua script to trigger, but this fails also. I tried it as a numeric value and a string value:
Code: Select all
return {
on = {
variables = {
'Grid','nGrid','sGrid'
}
},
execute = function(domoticz, variable)
domoticz.log('>>>>>>>>>> Variable ' .. variable.name .. ' was changed'..'to: '..variable, domoticz.LOG_INFO)
-- code
end
}I tried timer. They trigger as expected!
Whats wrong. I hope I get any help - Thanks