[RELEASE] HubiThings Replica

@Bloodtick_Jones HubiThings Replica is working great with Aqara FP2 paired to SmartThings :trophy:

Summary

There are a dozen of Aqra FP2 attributes that could be mapped to Hubitat! :

Summary

{ "DESCRIPTION":
{"allowed":null,"components":[{"capabilities":[{"id":"presenceSensor","version":1},{"id":"movementSensor","version":1},{"id":"multipleZonePresence","version":1},{"id":"illuminanceMeasurement","version":1},{"id":"refresh","version":1}],"categories":[{"categoryType":"manufacturer","name":"PresenceSensor"}],"id":"main","label":"main"},{"capabilities":[{"id":"stse.deviceMode","version":1}],"categories":[{"categoryType":"manufacturer","name":"PresenceSensor"}],"id":"mode","label":"mode"}],"createTime":"2024-10-12T14:40:18.125Z","deviceId":"hidden","deviceManufacturerCode":"Aqara","executionContext":"LOCAL","label":"Aqara-FP2","lan":{"driverId":"01976eca-e7ff-4d1b-91db-9c980ce668d7","executingLocally":true,"hubId":"hidden","networkId":"54:EF:44:4C:E7:E4","provisioningState":"TYPED"},"locationId":"hidden","manufacturerName":"SmartThingsCommunity","name":"aqara-fp2-zoneDetection","ownerId":"d0af6c46-4544-3e17-1ca5-d16241c6e729","parentDeviceId":"hidden","presentationId":"2831cea1-c351-3230-9fcc-3315c51c5e29","profile":{"id":"713889bc-01f3-333e-97ab-4d9b712d2420"},"restrictionTier":0,"roomId":"hidden","type":"LAN"}
},

{ "CAPABILITIES":
{"components":[{"attributes":{"presence":{"enumCommands":,"schema":{"additionalProperties":false,"properties":{"value":{"enum":["present","not present"],"title":"PresenceState","type":"string"}},"required":["value"],"type":"object"}}},"commands":{},"ephemeral":false,"id":"presenceSensor","name":"Presence Sensor","status":"live","version":1},{"attributes":{"movement":{"enumCommands":,"schema":{"additionalProperties":false,"properties":{"value":{"enum":["inactive","approaching","movingAway","entering","leaving","enteringLeft","enteringRight","leavingLeft","leavingRight"],"title":"MovementType","type":"string"}},"required":["value"],"type":"object"}},"supportedMovements":{"enumCommands":,"schema":{"additionalProperties":false,"properties":{"value":{"items":{"enum":["inactive","approaching","movingAway","entering","leaving","enteringLeft","enteringRight","leavingLeft","leavingRight"],"title":"MovementType","type":"string"},"type":"array"}},"required":,"type":"object"}}},"commands":{},"ephemeral":false,"id":"movementSensor","name":"Movement Sensor","status":"proposed","version":1},{"attributes":{"zoneState":{"enumCommands":,"schema":{"additionalProperties":false,"properties":{"value":{"items":{"additionalProperties":false,"properties":{"id":{"maxLength":255,"title":"String","type":"string"},"name":{"maxLength":255,"title":"String","type":"string"},"state":{"enum":["present","not present"],"title":"PresenceState","type":"string"}},"required":["id","name","state"],"title":"zoneState","type":"object"},"type":"array"}},"required":["value"],"type":"object"}}},"commands":{"createZone":{"arguments":[{"name":"name","optional":false,"schema":{"maxLength":255,"title":"String","type":"string"}},{"name":"id","optional":true,"schema":{"maxLength":255,"title":"String","type":"string"}}],"name":"createZone"},"deleteZone":{"arguments":[{"name":"id","optional":false,"schema":{"maxLength":255,"title":"String","type":"string"}}],"name":"deleteZone"},"updateZoneName":{"arguments":[{"name":"id","optional":false,"schema":{"maxLength":255,"title":"String","type":"string"}},{"name":"name","optional":false,"schema":{"maxLength":255,"title":"String","type":"string"}}],"name":"updateZoneName"}},"ephemeral":false,"id":"multipleZonePresence","name":"Multiple Zone Presence","status":"proposed","version":1},{"attributes":{"illuminance":{"enumCommands":,"schema":{"additionalProperties":false,"properties":{"unit":{"default":"lux","enum":["lux"],"type":"string"},"value":{"maximum":100000,"minimum":0,"type":"number"}},"required":["value"],"type":"object"}}},"commands":{},"ephemeral":false,"id":"illuminanceMeasurement","name":"Illuminance Measurement","status":"live","version":1},{"attributes":{},"commands":{"refresh":{"arguments":,"name":"refresh"}},"ephemeral":false,"id":"refresh","name":"Refresh","status":"live","version":1},{"attributes":{"mode":{"enumCommands":,"schema":{"additionalProperties":false,"properties":{"value":{"enum":["zoneDetection","fallDetection","sleepMonitoring"],"type":"string"}},"required":["value"],"type":"object"}}},"commands":{},"ephemeral":false,"id":"stse.deviceMode","name":"device mode","status":"proposed","version":1}]}
},

{ "STATUS":
{"components":{"main":{"illuminanceMeasurement":{"illuminance":{"timestamp":"2024-10-12T15:52:47.491Z","unit":"lux","value":44}},"movementSensor":{"movement":{"timestamp":"2024-10-12T15:56:46.813Z","value":"inactive"},"supportedMovements":{"timestamp":"2024-10-12T14:40:29.826Z","value":["inactive","approaching","movingAway","entering","leaving"]}},"multipleZonePresence":{"zoneState":{"timestamp":"2024-10-12T15:58:48.511Z","value":[{"id":"5","name":"zone5","state":"not present"},{"id":"3","name":"zone3","state":"not present"},{"id":"4","name":"zone4","state":"not present"},{"id":"6","name":"zone6","state":"not present"},{"id":"2","name":"zone2","state":"not present"}]}},"presenceSensor":{"presence":{"timestamp":"2024-10-12T15:55:42.670Z","value":"present"}},"refresh":{}},"mode":{"stse.deviceMode":{"mode":{"timestamp":"2024-10-12T14:40:29.829Z","value":"zoneDetection"}}}}}
},

{ "RULES":
{"components":[{"command":{"label":"command: setHealthStatusValue(healthStatus*)","name":"setHealthStatusValue","parameters":[{"name":"healthStatus*","type":"ENUM"}],"type":"command"},"mute":false,"trigger":{"additionalProperties":false,"attribute":"healthStatus","capability":"healthCheck","label":"attribute: healthStatus.*","properties":{"value":{"title":"HealthState","type":"string"}},"required":["value"],"type":"attribute"},"type":"smartTrigger"},{"command":{"label":"command: setMotionActive()","name":"setMotionActive","type":"command"},"trigger":{"additionalProperties":false,"attribute":"presence","capability":"presenceSensor","dataType":"ENUM","label":"attribute: presence.present","properties":{"value":{"title":"PresenceState","type":"string"}},"required":["value"],"type":"attribute","value":"present"},"type":"smartTrigger"},{"command":{"label":"command: setMotionInactive()","name":"setMotionInactive","type":"command"},"trigger":{"additionalProperties":false,"attribute":"presence","capability":"presenceSensor","dataType":"ENUM","label":"attribute: presence.not present","properties":{"value":{"title":"PresenceState","type":"string"}},"required":["value"],"type":"attribute","value":"not present"},"type":"smartTrigger"}],"version":1}
}]

Many thanks for this great app! :+1:


Update: the "Replica Aqara FP2" driver is published here.

1 Like