En faisant les configurations de mes génériques sur des ampoules Philips LTW012 (white ambiance), je me suis aperçu que la configuration dans jeedom remonte des commandes pour le réglage couleur XY ce qui ne devrait pas être le cas pour ce genre de modèle.
Le json d’import Color temperature light.json
{
"commands": [
{
"name": "Etat",
"type": "info",
"isVisible": 0,
"isHistorized": 1,
"subtype": "numeric",
"generic_type": "LIGHT_STATE",
"logicalId": "state::on"
},
{
"name": "On",
"type": "action",
"subtype": "other",
"generic_type": "LIGHT_ON",
"isVisible": 1,
"isHistorized": 0,
"value" : "Etat",
"logicalId": "on::1",
"template": {
"dashboard": "light",
"mobile": "light"
}
},
{
"name": "Off",
"type": "action",
"subtype": "other",
"generic_type": "LIGHT_OFF",
"isVisible": 1,
"isHistorized": 0,
"value" : "Etat",
"logicalId": "on::0",
"template": {
"dashboard": "light",
"mobile": "light"
}
},
{
"name": "Etat Luminosité",
"type": "info",
"isVisible": 0,
"isHistorized": 1,
"subtype": "numeric",
"generic_type": "LIGHT_STATE",
"logicalId": "state::bri"
},
{
"name": "Luminosité",
"type": "action",
"subtype": "slider",
"generic_type": "LIGHT_SLIDER",
"isVisible": 1,
"isHistorized": 0,
"value" : "Etat Luminosité",
"logicalId": "bri::#slider#",
"configuration" : {
"minValue" : 0,
"maxValue" : 255
},
"template": {
"dashboard": "light",
"mobile": "light"
}
},
{
"name": "Couleur",
"type": "action",
"subtype": "color",
"generic_type": "LIGHT_SET_COLOR",
"isVisible": 1,
"isHistorized": 0,
"value" : "Etat Couleur",
"logicalId": "xy::#color#"
},
{
"name": "Etat Couleur",
"type": "info",
"isVisible": 0,
"isHistorized": 1,
"subtype": "string",
"generic_type": "LIGHT_STATE",
"logicalId": "state::xy"
},
{
"name": "Effet",
"type": "action",
"isVisible": 1,
"isHistorized": 0,
"subtype": "other",
"generic_type": "DONT",
"logicalId": "effect::colorloop"
},
{
"name": "Temperature",
"type": "action",
"subtype": "slider",
"isVisible": 1,
"isHistorized": 0,
"value" : "Etat Temperature",
"logicalId": "ct::#slider#",
"configuration" : {
"minValue" : 153,
"maxValue" : 500
}
},
{
"name": "Etat Temperature",
"type": "info",
"isVisible": 0,
"isHistorized": 1,
"subtype": "numeric",
"logicalId": "state::ct"
}
]
}
N’est il pas utile de virer la création des commande couleur, état couleur et scène ?
Ici une version du json d’import sans les commandes couleur et avec les derniers génèriques jeedom.
{
"commands": [
{
"name": "Etat",
"type": "info",
"isVisible": 0,
"isHistorized": 1,
"subtype": "numeric",
"generic_type": "LIGHT_STATE",
"logicalId": "state::on"
},
{
"name": "On",
"type": "action",
"subtype": "other",
"generic_type": "LIGHT_ON",
"isVisible": 1,
"isHistorized": 0,
"value" : "Etat",
"logicalId": "on::1",
"template": {
"dashboard": "light",
"mobile": "light"
}
},
{
"name": "Off",
"type": "action",
"subtype": "other",
"generic_type": "LIGHT_OFF",
"isVisible": 1,
"isHistorized": 0,
"value" : "Etat",
"logicalId": "on::0",
"template": {
"dashboard": "light",
"mobile": "light"
}
},
{
"name": "Etat Luminosité",
"type": "info",
"isVisible": 0,
"isHistorized": 1,
"subtype": "numeric",
"generic_type": "LIGHT_BRIGHTNESS",
"logicalId": "state::bri"
},
{
"name": "Luminosité",
"type": "action",
"subtype": "slider",
"generic_type": "LIGHT_SLIDER",
"isVisible": 1,
"isHistorized": 0,
"value" : "Etat Luminosité",
"logicalId": "bri::#slider#",
"configuration" : {
"minValue" : 0,
"maxValue" : 255
},
"template": {
"dashboard": "light",
"mobile": "light"
}
},
{
"name": "Temperature",
"type": "action",
"subtype": "slider",
"generic_type": "LIGHT_SET_COLOR_TEMP",
"isVisible": 1,
"isHistorized": 0,
"value" : "Etat Temperature",
"logicalId": "ct::#slider#",
"configuration" : {
"minValue" : 153,
"maxValue" : 500
}
},
{
"name": "Etat Temperature",
"type": "info",
"generic_type": "LIGHT_COLOR_TEMP",
"isVisible": 0,
"isHistorized": 1,
"subtype": "numeric",
"logicalId": "state::ct"
}
]
}
Actuellement virer les commandes sans modifier ce fichier ne sert à rien, celles ci reviennent à chaque fois que deconz remonte des infos.
Une fois correctement configuré sur Jeemate on as bien que le slider luminosité et température.