Dusk sensor sometimes fails

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
rtna
Posts: 17
Joined: Monday 06 April 2015 12:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Dusk sensor sometimes fails

Post by rtna »

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.
malarcy
Posts: 50
Joined: Sunday 15 November 2015 13:36
Target OS: Linux
Domoticz version:
Contact:

Re: Dusk sensor sometimes fails

Post by malarcy »

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
thebeetleuk
Posts: 115
Joined: Saturday 21 December 2013 23:50
Target OS: Linux
Domoticz version:
Location: Scotland
Contact:

Re: Dusk sensor sometimes fails

Post by thebeetleuk »

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.
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?
My Setup: Pi, RFXtrx433, HomeEasy: 13 Dimmers & 4 Sockets, 2 motion-sensors, 3 magnetic switches, 1 OWL Electricity Sensor, 3 Oregon Temp Sensor.
thebeetleuk
Posts: 115
Joined: Saturday 21 December 2013 23:50
Target OS: Linux
Domoticz version:
Location: Scotland
Contact:

Re: Dusk sensor sometimes fails

Post by thebeetleuk »

thebeetleuk wrote:
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.
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?
forget that. I didn't realise the sunset and sunrise settings were available in blocky. all setup now. On to some testing.
My Setup: Pi, RFXtrx433, HomeEasy: 13 Dimmers & 4 Sockets, 2 motion-sensors, 3 magnetic switches, 1 OWL Electricity Sensor, 3 Oregon Temp Sensor.
manjh
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

Post by manjh »

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".
Hans
RemcoSmit
Posts: 8
Joined: Saturday 09 July 2016 14:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dusk sensor sometimes fails

Post by RemcoSmit »

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 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.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest