@kosta said in New Plugin - [pimatic-raspbee]:
Yeah, that’s no problem. I can implement these device types.
This sensor appears as three sensors on the network. Ideally, it would be nice to have this as a single logical device in pimatic, i.e., a MultiSensor similar to what pimatic-mysensors provides with MySensorsMulti
. Additionally, it would be nice to allow for the discovery to automatically detect the multi sensor. That is the tricky bit. Apparently, the grouping could be achieved by using the “etag” property or a prefix of “uniqueid” as suggested in #57. I’ll also add my comments to the issue ticket for the record.
Temperatue (Original Xiaomi):
{
"config": {
"on": true,
"reachable": true
},
"ep": 1,
"etag": "baceb383ac8e25019e439fea82ed501e",
"manufacturername": "LUMI",
"modelid": "lumi.sensor_ht",
"name": "Temperature",
"state": {
"lastupdated": "2017-08-05T11:03:18",
"temperature": 2411
},
"swversion": "3000-0001",
"type": "ZHATemperature",
"uniqueid": "00:15:8d:00:##:##:##:##-01-0402"
}
Humidity (Original Xiaomi, part of the temperature sensor, so it has the same prefix in uniqueid as the temperature sensor):
{
"config": {
"on": true,
"reachable": true
},
"ep": 1,
"etag": "baceb383ac8e25019e439fea82ed501e",
"manufacturername": "LUMI",
"modelid": "lumi.sensor_ht",
"name": "Humidity",
"state": {
"humidity": 5624,
"lastupdated": "2017-08-05T11:03:18"
},
"swversion": "3000-0001",
"type": "ZHAHumidity",
"uniqueid": "00:15:8d:00:##:##:##:##-01-0405"
}
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law