Widget Tête thermostatique Danfoss Ally

Bonjour,

Je souhaite modifié le fichier ZHAThermostat.json afin de pouvoir créer les widgets comme je le souhaite lors de l’inclusion des Tête thermostatique Danfoss Ally

J’ai suivi ce sujet

J’ai modifié le fichier
Par contre je ne sais pas comment faire apparaitre Etat de cette manière ?
image

Voici mon fichier

{
  "commands": [
      {
      "name": "Thermostat",
      "type": "action",
      "subtype": "slider",
      "generic_type": "THERMOSTAT_SET_SETPOINT",
      "isVisible": 1,
      "unite" : "°C",
      "value" : "Consigne",
      "logicalId": "config::heatsetpoint::#slider#",
      "template": {
        "dashboard": "button",
        "mobile": "button"
      },
       "configuration": {
        "minValue" : 7,
        "maxValue" : 30
      }
    },
    {
      "name": "Consigne",
      "type": "info",
      "isVisible": 1,
      "isHistorized": 0,
      "subtype": "numeric",
      "unite" : "°C",
      "generic_type": "THERMOSTAT_SETPOINT",
      "logicalId": "config::heatsetpoint",
      "template": {
        "dashboard": "line",
        "mobile": "line"
      },
      "configuration" :{
        "calculValueOffset" : "#value# / 100",
        "minValue" : 7,
        "maxValue" : 30
      }
    },
    {
      "name": "Eco",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_MODE",
      "isVisible": 1,
      "unite" : "°C",
      "value" : "Mode actuel",
      "logicalId": "config::heatsetpoint::17"
    },
    {
      "name": "Chauffage",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_MODE",
      "isVisible": 1,
      "unite" : "°C",
      "value" : "Mode actuel",
      "logicalId": "config::heatsetpoint::21"
    },
    {
      "name": "Hors gel",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_MODE",
      "isVisible": 0,
      "unite" : "°C",
      "value" : "Mode actuel",
      "logicalId": "config::heatsetpoint::10"
    },  
    {
      "name": "Ete",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_MODE",
      "isVisible": 0,
      "unite" : "°C",
      "value" : "Mode actuel",
      "logicalId": "config::heatsetpoint::30"
    },
    {
      "name": "Mode actuel",
      "type": "info",
      "subtype": "string",
      "generic_type": "THERMOSTAT_MODE",
      "isVisible": 1,
      "logicalId": "Mode actuel"
    },
    {
      "name": "Temp relevée",
      "type": "info",
      "isVisible": 1,
      "isHistorized": 1,
      "subtype": "numeric",
      "unite" : "°C",
      "generic_type": "THERMOSTAT_TEMPERATURE",
      "logicalId": "state::temperature",
      "template": {
        "dashboard": "line",
        "mobile": "line"
      },
      "configuration" :{
        "calculValueOffset" : "#value# / 100"
      }
    },
    {
      "name": "Puissance",
      "type": "info",
      "isVisible": 1,
      "isHistorized": 0,
      "subtype": "numeric",
      "unite" : "%",
      "logicalId": "state::valve",
      "template": {
        "dashboard": "line",
        "mobile": "line"
      },
      "configuration" : {
        "minValue" : 0,
        "maxValue" : 100
      }
    },
    {
      "name": "Batterie",
      "type": "info",
      "isVisible": 1,
      "isHistorized": 0,
      "subtype": "numeric",
      "generic_type": "BATTERY",
      "logicalId": "config::battery",
      "template": {
        "dashboard": "line",
        "mobile": "line"
      },
      "configuration": {
        "minValue" : 1,
        "maxValue" : 100
      }
    },

    {
      "name": "Verrouillage",
      "type": "info",
      "subtype": "binary",
      "generic_type": "THERMOSTAT_LOCK",
      "isVisible": 0,
      "logicalId": "config::locked"
    },
    {
      "name": "Verrouillage On",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_LOCK",
      "isVisible": 0,
      "value" : "Verrouillage",
      "logicalId": "config::locked::1"
    },
    {
      "name": "Verrouillage Off",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_UNLOCK",
      "isVisible": 0,
      "value" : "Verrouillage",
      "logicalId": "config::locked::0"
    },
    {
      "name": "Fenetre",
      "type": "info",
      "isVisible": 1,
      "isHistorized": 1,
      "subtype": "string",
      "generic_type": "",
      "logicalId": "state::windowopen"
    },
    {
      "name": "Etat",
      "type": "info",
      "subtype": "binary",
      "isVisible": 1,
      "isHistorized": 1,
      "generic_type": "THERMOSTAT_STATE",
      "logicalId": "state::on"
    },
    {
      "name": "Reachable",
      "type": "info",
      "isVisible": 0,
      "isHistorized": 0,
      "subtype": "binary",
      "generic_type": "GENERIC_INFO",
      "logicalId": "config::reachable"
     }
  ]
}

Salut,

{
      "name": "Etat",
      "type": "info",
      "subtype": "binary",
      "isVisible": 1,
      "isHistorized": 1,
      "generic_type": "THERMOSTAT_STATE",
      "logicalId": "state::on",
      "template": {
        "dashboard": "default",
        "mobile": "default"
      },

Bonjour
Aucune ne s’est créé

{
  "commands": [
      {
      "name": "Thermostat",
      "type": "action",
      "subtype": "slider",
      "generic_type": "THERMOSTAT_SET_SETPOINT",
      "isVisible": 1,
      "unite" : "°C",
      "value" : "Consigne",
      "logicalId": "config::heatsetpoint::#slider#",
      "template": {
        "dashboard": "button",
        "mobile": "button"
      },
       "configuration": {
        "minValue" : 7,
        "maxValue" : 30
      }
    },
    {
      "name": "Consigne",
      "type": "info",
      "isVisible": 1,
      "isHistorized": 0,
      "subtype": "numeric",
      "unite" : "°C",
      "generic_type": "THERMOSTAT_SETPOINT",
      "logicalId": "config::heatsetpoint",
      "template": {
        "dashboard": "line",
        "mobile": "line"
      },
      "configuration" :{
        "calculValueOffset" : "#value# / 100",
        "minValue" : 7,
        "maxValue" : 30
      }
    },
    {
      "name": "Eco",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_MODE",
      "isVisible": 1,
      "unite" : "°C",
      "value" : "Mode actuel",
      "logicalId": "config::heatsetpoint::17"
    },
    {
      "name": "Chauffage",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_MODE",
      "isVisible": 1,
      "unite" : "°C",
      "value" : "Mode actuel",
      "logicalId": "config::heatsetpoint::21"
    },
    {
      "name": "Hors gel",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_MODE",
      "isVisible": 0,
      "unite" : "°C",
      "value" : "Mode actuel",
      "logicalId": "config::heatsetpoint::10"
    },  
    {
      "name": "Ete",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_MODE",
      "isVisible": 0,
      "unite" : "°C",
      "value" : "Mode actuel",
      "logicalId": "config::heatsetpoint::30"
    },
    {
      "name": "Mode actuel",
      "type": "info",
      "subtype": "string",
      "generic_type": "THERMOSTAT_MODE",
      "isVisible": 1,
      "logicalId": "Mode actuel"
    },
    {
      "name": "Temp relevée",
      "type": "info",
      "isVisible": 1,
      "isHistorized": 1,
      "subtype": "numeric",
      "unite" : "°C",
      "generic_type": "THERMOSTAT_TEMPERATURE",
      "logicalId": "state::temperature",
      "template": {
        "dashboard": "line",
        "mobile": "line"
      },
      "configuration" :{
        "calculValueOffset" : "#value# / 100"
      }
    },
    {
      "name": "Puissance",
      "type": "info",
      "isVisible": 1,
      "isHistorized": 0,
      "subtype": "numeric",
      "unite" : "%",
      "logicalId": "state::valve",
      "template": {
        "dashboard": "line",
        "mobile": "line"
      },
      "configuration" : {
        "minValue" : 0,
        "maxValue" : 100
      }
    },
    {
      "name": "Batterie",
      "type": "info",
      "isVisible": 1,
      "isHistorized": 0,
      "subtype": "numeric",
      "generic_type": "BATTERY",
      "logicalId": "config::battery",
      "template": {
        "dashboard": "line",
        "mobile": "line"
      },
      "configuration": {
        "minValue" : 1,
        "maxValue" : 100
      }
    },

    {
      "name": "Verrouillage",
      "type": "info",
      "subtype": "binary",
      "generic_type": "THERMOSTAT_LOCK",
      "isVisible": 0,
      "logicalId": "config::locked"
    },
    {
      "name": "Verrouillage On",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_LOCK",
      "isVisible": 0,
      "value" : "Verrouillage",
      "logicalId": "config::locked::1"
    },
    {
      "name": "Verrouillage Off",
      "type": "action",
      "subtype": "other",
      "generic_type": "THERMOSTAT_SET_UNLOCK",
      "isVisible": 0,
      "value" : "Verrouillage",
      "logicalId": "config::locked::0"
    },
    {
      "name": "Fenetre",
      "type": "info",
      "isVisible": 1,
      "isHistorized": 1,
      "subtype": "string",
      "generic_type": "",
      "logicalId": "state::windowopen"
    },
    {
      "name": "Etat",
      "type": "info",
      "subtype": "binary",
      "isVisible": 1,
      "isHistorized": 1,
      "generic_type": "THERMOSTAT_STATE",
      "logicalId": "state::on"
      "template": {
        "dashboard": "default",
        "mobile": "default"
    },
    {
      "name": "Reachable",
      "type": "info",
      "isVisible": 0,
      "isHistorized": 0,
      "subtype": "binary",
      "generic_type": "GENERIC_INFO",
      "logicalId": "config::reachable"
     }
  ]
}

Toujours pas de commande de créé

a essayer …

Yes Ca marche merci

C’etait quoi le problème ? indentation ?

      "template": {
        "dashboard": "default",
        "mobile": "default"
      },

Merci a toi :pray: :wink:

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.