Well behind the scenes I have been working with @ericm to get his Dual Switch 2 FGS-223 driver working.
It reports power on both endpoints and you can also detect the difference between physical and software presses using sceneIds.
The driver can be found here -
/**
* Note: This handler requires the "Metering Switch Child Device" to be installed.
*
* Copyright 2016 Eric Maycock
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
* Fibaro FGS-223 Dual Relay
*
* Author: Eric Maycock (erocm123)
*
* 04/25/2017 - Fix for combined energy & power reports & switch endpoints showing correct info.
* 04/18/2017 - This handler requires the Metering Switch Child device to create the multiple switch endpoints.
This file has been truncated. show original
If you want to create automations based on a physical up & down press on the switch set the proper scene settings in the device:
You can see from the Button Mappings section:
Also, here is a listing:
Button Mappings for scene functionality:
Toggle Mode
1 pushed - S1 1x toggle
4 pushed - S1 2x toggle
5 pushed - S1 3x toggle
1 held - S2 1x toggle
4 held - S2 2x toggle
5 held - S2 3x toggle
Momentary Mode
1 pushed - S1 1x click
2 pushed - S1 release
3 pushed - S1 hold
4 pushed - S1 2x click
5 pushed - S1 3x click
1 held - S2 1x click
2 held - S2 release
3 held - S2 hold
4 held - S2 2x click
5 held - S2 3x click
2 Likes