[quote=“vosmont, post:35, topic:172134”]Hi hugheaves,
it’s a great plugin :)[/quote]
Thanks!
[quote=“vosmont, post:35, topic:172134”]here are some questions :
- Light is turned back off when no motion is detected : ie, turned off after the “automatic timeout” which is after the event “no motion” ? (after internal timeout in the motion device)[/quote]
That is correct. The automatic timeout is measured from when the motion sensor last changed to “not triggered / no motion” status.
[quote=“vosmont, post:35, topic:172134”]- Is it possible to ignore automatic light turn on ?
Ability to set a luup code (like in a scene) to decide if the automatic lighting will be done (use is_night or between two hours).[/quote]
Yes, if you are using the scene editor, just click the “None” button in the automatic timeout section. This will actually prevent the light from turning on automatically. The equivalent Luup code would be:
luup.call_action(“urn:hugheaves-com:serviceId:SmartSwitchController1”, “SetAutoTimeout”, { [“NewTimeout”] = 30 }, SMART_SWITCH_DEVICE_ID)
(substitute the device Id for the smart switch device for SMART_SWITCH_DEVICE_ID)
Yes, any change to the switch state that was not initiated by the smart switch device (i.e. not an automatic change) is considered to be a manual change to the switch.
Correct, the on and off levels are the levels that are used for automatic control only.
[quote=“vosmont, post:35, topic:172134”]- Is it possible that the SmartSwitchController exposes its “state” and “Timeout” variables on a sdata request ?
It’s to display on an external interface the current status of the light and the time which remains before this light turns off.[/quote]
Unfortunately, MCV provides no way for an end user to specify what data is returned in sdata. (It’s completely up to them). However, you could request the user_data or use the variableget functions to retrieve the state information. See: http://wiki.micasaverde.com/index.php/Luup_Requests for information on using API’s.
The variables available in the smart switch service are defined here:
http://git.hugheaves.com/gitweb/?p=mios_smart-switch.git;a=blob_plain;f=src/S_SmartSwitchController1.xml;hb=refs/heads/master
[quote=“vosmont, post:35, topic:172134”]- Is it possible to control the switch using other device than motion sensor ?
I’ve got a BLYSS motion sensor, which is detected by the RFXtrx plugin as a light.[/quote]
Not right now, but it’s on my “to do” list, and will be in the next release. The next release should be out in a couple of weeks.
Hugh