Platform: Pi 2b
Plugin/Hardware: dzVents
Description:
Based on this thread: http://www.domoticz.com/forum/viewtopic ... 28&t=19226
I purchased some 433MHz wireless contacts. I tried setting up the dzVents scripting as in that thread but so far I have not been able to trigger the dzVents system when either open signal is received. Since this sensor sends an open event when the magnet moves away and an open event when the magnet closes again, the intent was to set up both devices and control a virtual contact with scripting.
The log shows the RFLink is seeing the two devices properly however, the dzVents script never fires even if I set it to something simple like logging.
Code: Select all
2018-04-02 17:22:31.315 dzVents: Debug: • Device: Dining Room Temp/Humidity
2018-04-02 17:22:34.330 dzVents: Debug: Dumping domoticz data to /home/tallen/domoticz/scripts/dzVents/domoticzData.lua
2018-04-02 17:22:34.361 dzVents: Debug: Processing device-adapter for Bedroom 2 Temp/Humidity: Temperature+humidity device adapter
2018-04-02 17:22:34.361 dzVents: Debug: dzVents version: 2.4.2
2018-04-02 17:22:34.361 dzVents: Debug: Event triggers:
2018-04-02 17:22:34.361 dzVents: Debug: • Device: Bedroom 2 Temp/Humidity
2018-04-02 17:22:35.330 (RF_HUB) Light/Switch (W1Op)
2018-04-02 17:22:43.554 (RF_HUB) Light/Switch (W1Cl)
2018-04-02 17:22:58.902 dzVents: Debug: Dumping domoticz data to /home/tallen/domoticz/scripts/dzVents/domoticzData.lua
2018-04-02 17:22:58.945 dzVents: Debug: Processing device-adapter for Nanu Tank Temp: Temperature device adapter
2018-04-02 17:22:58.945 dzVents: Debug: dzVents version: 2.4.2
2018-04-02 17:22:58.945 dzVents: Debug: Event triggers:
Code: Select all
return {
on = {
devices = {
'W1Op'
}
},
execute = function(domoticz, device)
domoticz.log('Device ' .. device.name .. ' was activated', domoticz.LOG_INFO)
end
}