Doorswitch turn on / off light

Moderator: leecollings

Post Reply
Minimac
Posts: 2
Joined: Monday 09 November 2015 23:58
Target OS: Windows
Domoticz version:
Contact:

Doorswitch turn on / off light

Post by Minimac »

Hello,

we use a KAKU AMST-606 Draadloos magneetcontact. to switch on and switch of the lights in the garden. ( KAKU AWMD-250 Mini inbouw dimmer multi)
now we use Blocky to do that.
But when the lights allready switched on by hand, and you opend the door the lights dim on and off.

what do we wrong??
Attachments
Door sensor.png
Door sensor.png (33.6 KiB) Viewed 1634 times
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Doorswitch turn on / off light

Post by Egregius »

Isn't that just because it's a KAKU dimmer? You don't have the status of it in Domoticz.
niclasc
Posts: 28
Joined: Wednesday 09 December 2015 17:04
Target OS: Linux
Domoticz version: 4.10854
Location: Sweden
Contact:

Re: Doorswitch turn on / off light

Post by niclasc »

Are you sure you should use open/closed? I have a magnet switch on my front door and that is "off" when the door is closed. And if I open the door it sends an "on" signal.
Robert
Posts: 16
Joined: Saturday 01 March 2014 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Doorswitch turn on / off light

Post by Robert »

Why did you set a input in the output statement? You should make your script dependable of the output state. Try the following: when "door contact" is "ON" AND "tuinverlichting" is "OFF" AND time is > sunset AND <sunrise THEN SET "tuinverlichting" ON. Be aware that the sunset sunrise doesn't work well in blockly. See other topic.


Verzonden vanaf mijn iPhone met Tapatalk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest