-
-
Notifications
You must be signed in to change notification settings - Fork 37.5k
Discover Fibaro FGMS001 v2.8 as a motion sensor for Z-Wave #169276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,7 @@ | |
| is_opening_state_notification_value, | ||
| ) | ||
| from .models import ( | ||
| FirmwareVersionRange, | ||
| NewZWaveDiscoverySchema, | ||
| ValueType, | ||
| ZwaveDiscoveryInfo, | ||
|
|
@@ -1346,6 +1347,38 @@ def __init__( | |
| ), | ||
| entity_class=ZWaveBooleanBinarySensor, | ||
| ), | ||
| NewZWaveDiscoverySchema( | ||
| # Fibaro FGMS001 Motion Sensor: | ||
| # On firmware <= 2.8 the device supports Binary Sensor CC v1, which | ||
| # does not give us any information about the type of the sensor. | ||
| # As a result it is exposed via the generic "Any" sensor type, | ||
| # which fits no other discovery schema. | ||
| platform=Platform.BINARY_SENSOR, | ||
| manufacturer_id={0x010F}, | ||
| product_type={0x0800, 0x0801, 0x8800}, | ||
| product_id={ | ||
| 0x1001, | ||
| 0x1002, | ||
| 0x2001, | ||
| 0x2002, | ||
| 0x3001, | ||
| 0x3002, | ||
| 0x4001, | ||
| 0x4002, | ||
| 0x6001, | ||
| }, | ||
| firmware_version_range=FirmwareVersionRange(max="2.8"), | ||
| primary_value=ZWaveValueDiscoverySchema( | ||
| command_class={CommandClass.SENSOR_BINARY}, | ||
| property={"Any"}, | ||
| type={ValueType.BOOLEAN}, | ||
| ), | ||
| entity_description=BinarySensorEntityDescription( | ||
| key="motion", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is not necessarily needed, right? By default, the sensor's name matches the device.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's nice to include the sensor feature in the name since there often is more than one sensor on a device. Lights and switches etc don't need an extra name since those seldom are more than one per device. |
||
| device_class=BinarySensorDeviceClass.MOTION, | ||
| ), | ||
| entity_class=ZWaveBooleanBinarySensor, | ||
| ), | ||
| NewZWaveDiscoverySchema( | ||
| platform=Platform.BINARY_SENSOR, | ||
| primary_value=ZWaveValueDiscoverySchema( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,198 @@ | ||
| { | ||
| "nodeId": 2, | ||
| "index": 0, | ||
| "status": 4, | ||
| "ready": true, | ||
| "isListening": true, | ||
| "isRouting": true, | ||
| "isSecure": false, | ||
| "manufacturerId": 271, | ||
| "productId": 4097, | ||
| "productType": 2048, | ||
| "firmwareVersion": "2.8", | ||
| "deviceConfig": { | ||
| "filename": "/data/db/devices/0x010f/fgms001.json", | ||
| "manufacturerId": 271, | ||
| "manufacturer": "Fibargroup", | ||
| "label": "FGMS001", | ||
| "description": "Motion Sensor", | ||
| "devices": [ | ||
| { | ||
| "productType": 2048, | ||
| "productId": 4097 | ||
| } | ||
| ], | ||
| "firmwareVersion": { | ||
| "min": "0.0", | ||
| "max": "255.255" | ||
| }, | ||
| "paramInformation": { | ||
| "_map": {} | ||
| } | ||
| }, | ||
| "label": "FGMS001", | ||
| "interviewAttempts": 1, | ||
| "isFrequentListening": false, | ||
| "maxDataRate": 100000, | ||
| "supportedDataRates": [40000, 9600, 100000], | ||
| "protocolVersion": 3, | ||
| "supportsBeaming": true, | ||
| "supportsSecurity": false, | ||
| "nodeType": 1, | ||
| "deviceClass": { | ||
| "basic": { | ||
| "key": 4, | ||
| "label": "Routing End Node" | ||
| }, | ||
| "generic": { | ||
| "key": 7, | ||
| "label": "Notification Sensor" | ||
| }, | ||
| "specific": { | ||
| "key": 1, | ||
| "label": "Notification Sensor" | ||
| } | ||
| }, | ||
| "interviewStage": "Complete", | ||
| "deviceDatabaseUrl": "https://devices.zwave-js.io/?jumpTo=0x010f:0x0800:0x1001:2.8", | ||
| "highestSecurityClass": -1, | ||
| "isControllerNode": false, | ||
| "keepAwake": false, | ||
| "protocol": 0, | ||
| "values": [ | ||
| { | ||
| "endpoint": 0, | ||
| "commandClass": 48, | ||
| "commandClassName": "Binary Sensor", | ||
| "property": "Any", | ||
| "propertyName": "Any", | ||
| "ccVersion": 1, | ||
| "metadata": { | ||
| "type": "boolean", | ||
| "readable": true, | ||
| "writeable": false, | ||
| "label": "Sensor state (Any)", | ||
| "ccSpecific": { | ||
| "sensorType": 255 | ||
| }, | ||
| "stateful": true, | ||
| "secret": false | ||
| }, | ||
| "value": false | ||
| }, | ||
| { | ||
| "endpoint": 0, | ||
| "commandClass": 114, | ||
| "commandClassName": "Manufacturer Specific", | ||
| "property": "productId", | ||
| "propertyName": "productId", | ||
| "ccVersion": 1, | ||
| "metadata": { | ||
| "type": "number", | ||
| "readable": true, | ||
| "writeable": false, | ||
| "label": "Product ID", | ||
| "min": 0, | ||
| "max": 65535, | ||
| "stateful": true, | ||
| "secret": false | ||
| }, | ||
| "value": 4097 | ||
| }, | ||
| { | ||
| "endpoint": 0, | ||
| "commandClass": 114, | ||
| "commandClassName": "Manufacturer Specific", | ||
| "property": "productType", | ||
| "propertyName": "productType", | ||
| "ccVersion": 1, | ||
| "metadata": { | ||
| "type": "number", | ||
| "readable": true, | ||
| "writeable": false, | ||
| "label": "Product type", | ||
| "min": 0, | ||
| "max": 65535, | ||
| "stateful": true, | ||
| "secret": false | ||
| }, | ||
| "value": 2048 | ||
| }, | ||
| { | ||
| "endpoint": 0, | ||
| "commandClass": 114, | ||
| "commandClassName": "Manufacturer Specific", | ||
| "property": "manufacturerId", | ||
| "propertyName": "manufacturerId", | ||
| "ccVersion": 1, | ||
| "metadata": { | ||
| "type": "number", | ||
| "readable": true, | ||
| "writeable": false, | ||
| "label": "Manufacturer ID", | ||
| "min": 0, | ||
| "max": 65535, | ||
| "stateful": true, | ||
| "secret": false | ||
| }, | ||
| "value": 271 | ||
| }, | ||
| { | ||
| "endpoint": 0, | ||
| "commandClass": 134, | ||
| "commandClassName": "Version", | ||
| "property": "firmwareVersions", | ||
| "propertyName": "firmwareVersions", | ||
| "ccVersion": 1, | ||
| "metadata": { | ||
| "type": "string[]", | ||
| "readable": true, | ||
| "writeable": false, | ||
| "label": "Z-Wave chip firmware versions", | ||
| "stateful": true, | ||
| "secret": false | ||
| }, | ||
| "value": ["2.8"] | ||
| } | ||
| ], | ||
| "endpoints": [ | ||
| { | ||
| "nodeId": 2, | ||
| "index": 0, | ||
| "deviceClass": { | ||
| "basic": { | ||
| "key": 4, | ||
| "label": "Routing End Node" | ||
| }, | ||
| "generic": { | ||
| "key": 7, | ||
| "label": "Notification Sensor" | ||
| }, | ||
| "specific": { | ||
| "key": 1, | ||
| "label": "Notification Sensor" | ||
| } | ||
| }, | ||
| "commandClasses": [ | ||
| { | ||
| "id": 134, | ||
| "name": "Version", | ||
| "version": 1, | ||
| "isSecure": false | ||
| }, | ||
| { | ||
| "id": 114, | ||
| "name": "Manufacturer Specific", | ||
| "version": 1, | ||
| "isSecure": false | ||
| }, | ||
| { | ||
| "id": 48, | ||
| "name": "Binary Sensor", | ||
| "version": 1, | ||
| "isSecure": false | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.