I have a KAKU dusk sensor wich is functioning perfectly most of the time. Every now and then the sensor failes for some reason. I can not see why this is, the next day everything is back to normal again. Maybe it has something to do whith Domoticz not recieving the radio signal.
When the sensor fails the scripts depending on the sensor (all lights on when dark outside) also are failing. It works again the next day off course but is leaves me with a problem on the day the sensor does not work.
Can this be solved with a script of something wich triggers a user variable when it's sunset, so if the sensor failes this also triggers the scripts as fallback? I tried this in blockly but no success.
Dusk sensor sometimes fails
Moderators: leecollings, remb0
Re: Dusk sensor sometimes fails
I use a virtual switch - with two timers set
Switch called "IsDay" timer on set to 10 mins after sunrise and set to off 10 mins before sunset.
You can trigger a blockly from that on/off if you want - or any other kind of script - and you can adjust the timings to suit the difference between calculated sunrise/sunset and actual when its light enough / dark enough to trigger something.
I am not familiar with the sensor you are using - or how domoticz handles it - but you may be able to set similar timers on the switch directly - so a timer to turn it off (dark) at say sunset +30 mins - then when it does get dark, if the sensor works, then great, if it doesn't then the timer sill fire and force it to be dark within 30 mins of sunset (or whatever you set the timer to).
Hope this helps
Switch called "IsDay" timer on set to 10 mins after sunrise and set to off 10 mins before sunset.
You can trigger a blockly from that on/off if you want - or any other kind of script - and you can adjust the timings to suit the difference between calculated sunrise/sunset and actual when its light enough / dark enough to trigger something.
I am not familiar with the sensor you are using - or how domoticz handles it - but you may be able to set similar timers on the switch directly - so a timer to turn it off (dark) at say sunset +30 mins - then when it does get dark, if the sensor works, then great, if it doesn't then the timer sill fire and force it to be dark within 30 mins of sunset (or whatever you set the timer to).
Hope this helps
-
- Posts: 115
- Joined: Saturday 21 December 2013 23:50
- Target OS: Linux
- Domoticz version:
- Location: Scotland
- Contact:
Re: Dusk sensor sometimes fails
How did yo do this? did you just set manual timers or does this look at the sunrise/sunset setting I can see on the dashboard?malarcy wrote:I use a virtual switch - with two timers set
Switch called "IsDay" timer on set to 10 mins after sunrise and set to off 10 mins before sunset.
My Setup: Pi, RFXtrx433, HomeEasy: 13 Dimmers & 4 Sockets, 2 motion-sensors, 3 magnetic switches, 1 OWL Electricity Sensor, 3 Oregon Temp Sensor.
-
- Posts: 115
- Joined: Saturday 21 December 2013 23:50
- Target OS: Linux
- Domoticz version:
- Location: Scotland
- Contact:
Re: Dusk sensor sometimes fails
forget that. I didn't realise the sunset and sunrise settings were available in blocky. all setup now. On to some testing.thebeetleuk wrote:How did yo do this? did you just set manual timers or does this look at the sunrise/sunset setting I can see on the dashboard?malarcy wrote:I use a virtual switch - with two timers set
Switch called "IsDay" timer on set to 10 mins after sunrise and set to off 10 mins before sunset.
My Setup: Pi, RFXtrx433, HomeEasy: 13 Dimmers & 4 Sockets, 2 motion-sensors, 3 magnetic switches, 1 OWL Electricity Sensor, 3 Oregon Temp Sensor.
-
- Posts: 708
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Dusk sensor sometimes fails
Keep in mind that all KAKU sensors are "dumb", meaning that they will start sending their signal when they want without checking anything.
If two sensors just happen to send at the same time, or if Domoticz issues a 433 command to another KAKU device, you may have "missing signals".
If two sensors just happen to send at the same time, or if Domoticz issues a 433 command to another KAKU device, you may have "missing signals".
Hans
-
- Posts: 8
- Joined: Saturday 09 July 2016 14:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dusk sensor sometimes fails
I am in the process of a migration from HomeWizard to Domoticz and have both systems up and running. The HomeWizard is still powered on, but doesn't switch anything anymore.manjh wrote:Keep in mind that all KAKU sensors are "dumb", meaning that they will start sending their signal when they want without checking anything.
If two sensors just happen to send at the same time, or if Domoticz issues a 433 command to another KAKU device, you may have "missing signals".
I too experience missed switch moments from the KAKU dusk sensor. The HomeWizard however, never missed one. I need the Domoticz system to catch each and every switch moment: I have scenes and variables depending on it.
In my opinion, at the moment the dusk sensor sends a signal, there are no other conflicting signals in the air as the HomeWizard does catch the signal just fine.
I checked the log file and at the time of switching from dark-->light or vice versa, Domoticz did not send anything. And as mentioned before the HomeWizard does not send anything anymore.
Could there be something wrong with the Domoticz program code?
Who is online
Users browsing this forum: No registered users and 1 guest