Page 1 of 1

Doorswitch turn on / off light

Posted: Friday 25 December 2015 23:19
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??

Re: Doorswitch turn on / off light

Posted: Saturday 26 December 2015 8:36
by Egregius
Isn't that just because it's a KAKU dimmer? You don't have the status of it in Domoticz.

Re: Doorswitch turn on / off light

Posted: Saturday 26 December 2015 9:47
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.

Doorswitch turn on / off light

Posted: Saturday 26 December 2015 10:33
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