how to know exactly a reason for event
Posted: Tuesday 29 May 2018 22:18
I want to use Xiaomi Xiaofang camera motion detection features. Problem that it not supported by domoticz because it communicates with xiaomi gateway in limited way.
idea that I will make automation inside xiaomi app/cloud and cause something which can be detected inside domoticz.
First idea to come - use Gateway to make light off if it off and on if it on.
I try to write a dzVent script to catch the event which set state "Off" on the attached gateway device.
The problem that I can't find a place where I can detect exactly a reason for event.
it just set state of the device "changed" and I don't really know what happens - can't make a distinction between my external Off command and e.g. lux or door bell induced from outside.
In what field I can find event reason?
idea that I will make automation inside xiaomi app/cloud and cause something which can be detected inside domoticz.
First idea to come - use Gateway to make light off if it off and on if it on.
I try to write a dzVent script to catch the event which set state "Off" on the attached gateway device.
The problem that I can't find a place where I can detect exactly a reason for event.
it just set state of the device "changed" and I don't really know what happens - can't make a distinction between my external Off command and e.g. lux or door bell induced from outside.
In what field I can find event reason?