Voici le json associé à l’appareil quand j’appuie sur l’ajout à Gladys :
{
"name": "Bureau Capteur_presence",
"model": "RTCGQ11LM",
"external_id": "zigbee2mqtt:Bureau Capteur_presence",
"features": [
{
"name": "Batterie",
"read_only": true,
"has_feedback": false,
"min": 0,
"max": 100,
"category": "battery",
"type": "integer",
"unit": "percent",
"external_id": "zigbee2mqtt:Bureau Capteur_presence:battery:integer:battery",
"selector": "zigbee2mqtt-bureau-capteur-presence-battery-integer-battery"
},
{
"name": "Détection mouvement Oui/Non",
"read_only": true,
"has_feedback": false,
"category": "motion-sensor",
"type": "binary",
"min": 0,
"max": 1,
"unit": null,
"external_id": "zigbee2mqtt:Bureau Capteur_presence:motion-sensor:binary:occupancy",
"selector": "zigbee2mqtt-bureau-capteur-presence-motion-sensor-binary-occupancy"
},
{
"name": "Température",
"read_only": true,
"has_feedback": false,
"min": -100,
"max": 150,
"category": "temperature-sensor",
"type": "decimal",
"unit": "celsius",
"external_id": "zigbee2mqtt:Bureau Capteur_presence:temperature-sensor:decimal:temperature",
"selector": "zigbee2mqtt-bureau-capteur-presence-temperature-sensor-decimal-temperature"
},
{
"name": "Tension moyenne",
"read_only": true,
"has_feedback": false,
"min": 0,
"max": 10000,
"category": "switch",
"type": "voltage",
"unit": "millivolt",
"external_id": "zigbee2mqtt:Bureau Capteur_presence:switch:voltage:voltage",
"selector": "zigbee2mqtt-bureau-capteur-presence-switch-voltage-voltage"
},
{
"name": "Luminosité décimale",
"read_only": true,
"has_feedback": false,
"min": 0,
"max": 100000,
"category": "light-sensor",
"type": "decimal",
"unit": "lux",
"external_id": "zigbee2mqtt:Bureau Capteur_presence:light-sensor:decimal:illuminance",
"selector": "zigbee2mqtt-bureau-capteur-presence-light-sensor-decimal-illuminance"
},
{
"name": "Luminosité décimale",
"read_only": true,
"has_feedback": false,
"min": 0,
"max": 100000,
"category": "light-sensor",
"type": "decimal",
"unit": null,
"external_id": "zigbee2mqtt:Bureau Capteur_presence:light-sensor:decimal:illuminance",
"selector": "zigbee2mqtt-bureau-capteur-presence-light-sensor-decimal-illuminance"
}
],
"should_poll": false,
"service_id": "515a15a0-d9e5-4d2b-89bf-80aca56106f7",
"room_id": "c571780a-4da5-4801-8731-8735a8e2c5a2"
}
Est ce que c’est parce que la même feature est présente en double, ou parce que l’unité est null pour l’une des deux ?