Merci. J’ai essayé avec True. Même erreur.
Voilà ce que j’ai trouvé en allant sur « réseau Zigbee » puis onglet « Informations brutes »
Home assistant apparaît plusieurs fois:
Je ne sais pas d’où sont extraites ces lignes de code mais cela peut te donner des idées.
Merci d’avance
Zigbee2Mqtt
{
"commit": "0326926",
"config": {
"advanced": {
"adapter_concurrent": null,
"adapter_delay": null,
"availability_blacklist": [],
"availability_blocklist": [],
"availability_passlist": [],
"availability_whitelist": [],
"cache_state": true,
"cache_state_persistent": true,
"cache_state_send_on_startup": true,
"channel": 11,
"elapsed": false,
"ext_pan_id": [
43,
7,
127,
179,
174,
16,
212,
158
],
"last_seen": "ISO_8601",
"legacy_api": true,
"legacy_availability_payload": true,
"log_debug_namespace_ignore": "",
"log_debug_to_mqtt_frontend": false,
"log_directory": "\/var\/www\/html\/plugins\/z2m\/data\/log\/%TIMESTAMP%",
"log_file": "log.log",
"log_level": "error",
"log_namespaced_levels": [],
"log_output": [
"console",
"file"
],
"log_rotation": true,
"log_symlink_current": false,
"log_syslog": [],
"output": "json",
"pan_id": 39067,
"report": false,
"soft_reset_timeout": 0,
"timestamp_format": "YYYY-MM-DD HH:mm:ss"
},
"blocklist": [],
"device_options": [],
"devices": {
"0x680ae2fffe41fe7e": {
"friendly_name": "0x680ae2fffe41fe7e"
},
"0xccccccfffebd7008": {
"friendly_name": "0xccccccfffebd7008"
}
},
"external_converters": [
"\/var\/www\/html\/plugins\/z2m\/core\/class\/..\/config\/converters\/Danfoss\/icon.js"
],
"frontend": {
"host": "0.0.0.0",
"port": 8080
},
"groups": [],
"homeassistant": {
"discovery_topic": "homeassistant",
"legacy_entity_attributes": true,
"legacy_triggers": true,
"status_topic": "hass\/status"
},
"map_options": {
"graphviz": {
"colors": {
"fill": {
"coordinator": "#e04e5d",
"enddevice": "#fff8ce",
"router": "#4ea3e0"
},
"font": {
"coordinator": "#ffffff",
"enddevice": "#000000",
"router": "#ffffff"
},
"line": {
"active": "#009900",
"inactive": "#994444"
}
}
}
},
"mqtt": {
"base_topic": "zigbee2mqtt",
"force_disable_retain": false,
"include_device_information": true,
"server": "mqtt:\/\/127.0.0.1:1883",
"user": "jeedom"
},
"ota": {
"disable_automatic_update_check": false,
"update_check_interval": 1440
},
"passlist": [],
"permit_join": false,
"serial": {
"adapter": "deconz",
"disable_led": false,
"port": "\/dev\/serial\/by-id\/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2148930-if00"
}
},
"config_schema": {
"definitions": {
"device": {
"properties": {
"debounce": {
"description": "Debounces messages of this device",
"title": "Debounce",
"type": "number"
},
"debounce_ignore": {
"description": "Protects unique payload values of specified payload properties from overriding within debounce time",
"examples": [
"action"
],
"items": {
"type": "string"
},
"title": "Ignore debounce",
"type": "array"
},
"disabled": {
"description": "Disables the device (excludes device from network scans, availability and group state updates)",
"requiresRestart": true,
"title": "Disabled",
"type": "boolean"
},
"filtered_attributes": {
"description": "Filter attributes with regex from published payload.",
"examples": [
"^temperature$",
"^battery$",
"^action$"
],
"items": {
"type": "string"
},
"title": "Filtered publish attributes",
"type": "array"
},
"filtered_cache": {
"description": "Filter attributes with regex from being added to the cache, this prevents the attribute from being in the published payload when the value didn't change.",
"examples": [
"^input_actions$"
],
"items": {
"type": "string"
},
"title": "Filtered attributes from cache",
"type": "array"
},
"filtered_optimistic": {
"description": "Filter attributes with regex from optimistic publish payload when calling \/set. (This has no effect if optimistic is set to false).",
"examples": [
"^color_(mode|temp)$",
"color"
],
"items": {
"type": "string"
},
"title": "Filtered optimistic attributes",
"type": "array"
},
"friendly_name": {
"description": "Used in the MQTT topic of a device. By default this is the device ID",
"readOnly": true,
"title": "Friendly name",
"type": "string"
},
"homeassistant": {
"properties": {
"name": {
"description": "Name of the device in Home Assistant",
"title": "Home Assistant name",
"type": "string"
}
},
"title": "Home Assistant",
"type": [
"object",
"null"
]
},
"icon": {
"description": "The user-defined device icon for the frontend. It can be a full URL link to an image (e.g. https:\/\/SOME.SITE\/MODEL123.jpg) (you cannot use a path to a local file) or base64 encoded data URL (e.g. image\/svg+xml;base64,PHN2ZyB3aW....R0aD)",
"title": "Icon",
"type": "string"
},
"optimistic": {
"default": true,
"description": "Publish optimistic state after set",
"title": "Optimistic",
"type": "boolean"
},
"qos": {
"description": "QoS level for MQTT messages of this device",
"title": "QoS",
"type": "number"
},
"retain": {
"description": "Retain MQTT messages of this device",
"title": "Retain",
"type": "boolean"
},
"retention": {
"description": "Sets the MQTT Message Expiry in seconds, Make sure to set mqtt.version to 5",
"title": "Retention",
"type": "number"
}
},
"required": [
"friendly_name"
],
"type": "object"
},
"group": {
"properties": {
"devices": {
"items": {
"type": "string"
},
"type": "array"
},
"filtered_attributes": {
"items": {
"type": "string"
},
"type": "array"
},
"friendly_name": {
"type": "string"
},
"off_state": {
"default": "auto",
"description": "Control when to publish state OFF for a group. 'all_members_off': only publish state OFF when all group members are in state OFF, 'last_member_state': publish state OFF whenever one of its members changes to OFF",
"enum": [
"all_members_off",
"last_member_state"
],
"requiresRestart": true,
"title": "Group off state",
"type": [
"string"
]
},
"optimistic": {
"type": "boolean"
},
"qos": {
"type": "number"
},
"retain": {
"type": "boolean"
}
},
"required": [
"friendly_name"
],
"type": "object"
}
},
"properties": {
"advanced": {
"properties": {
"adapter_concurrent": {
"description": "Adapter concurrency (e.g. 2 for CC2531 or 16 for CC26X2R1) (default: null, uses recommended value)",
"requiresRestart": true,
"title": "Adapter concurrency",
"type": [
"number",
"null"
]
},
"adapter_delay": {
"description": "Adapter delay",
"requiresRestart": true,
"title": "Adapter delay",
"type": [
"number",
"null"
]
},
"cache_state": {
"default": true,
"description": "MQTT message payload will contain all attributes, not only changed ones. Has to be true when integrating via Home Assistant",
"title": "Cache state",
"type": "boolean"
},
"cache_state_persistent": {
"default": true,
"description": "Persist cached state, only used when cache_state: true",
"title": "Persist cache state",
"type": "boolean"
},
"cache_state_send_on_startup": {
"default": true,
"description": "Send cached state on startup, only used when cache_state: true",
"title": "Send cached state on startup",
"type": "boolean"
},
"channel": {
"default": 11,
"description": "Zigbee channel, changing requires repairing all devices! (Note: use a ZLL channel: 11, 15, 20, or 25 to avoid Problems)",
"examples": [
15,
20,
25
],
"maximum": 26,
"minimum": 11,
"requiresRestart": true,
"title": "ZigBee channel",
"type": "number"
},
},el",
"type": "string"
},
"app_name": {
"default": "Zigbee2MQTT",
"description": "The name of the application (Default: Zigbee2MQTT).",
"title": "Localhost",
"type": "string"
},
"eol": {
"default": "\/n",
"description": "The end of line character to be added to the end of the message (Default: Message without modifications).",
"title": "eol",
"type": "string"
},
"host": {
"default": "localhost",
"description": "The host running syslogd, defaults to localhost.",
"title": "Host",
"type": "string"
},
"localhost": {
"default": "localhost",
"description": "Host to indicate that log messages are coming from (Default: localhost).",
"title": "Localhost",
"type": "string"
},
"path": {
"default": "\/dev\/log",
"description": "The path to the syslog dgram socket (i.e. \/dev\/log or \/var\/run\/syslog for OS X).",
"examples": [
"\/var\/run\/syslog"
],
"title": "Path",
"type": "string"
},
"pid": {
"default": "process.pid",
"description": "PID of the process that log messages are coming from (Default process.pid).",
"title": "PID",
"type": "string"
},
"port": {
"default": 514,
"description": "The port on the host that syslog is running on, defaults to syslogd's default port.",
"title": "Port",
"type": "number"
},
"protocol": {
"default": "udp4",
"description": "The network protocol to log over (e.g. tcp4, udp4, tls4, unix, unix-connect, etc).",
"examples": [
"udp4",
"tls4",
"unix",
"unix-connect"
],
"title": "Protocol",
"type": "string"
},
"type": {
"default": "5424",
"description": "The type of the syslog protocol to use (Default: BSD, also valid: 5424).",
"title": "Type",
"type": "string"
}
},
"title": "syslog (enabled)",
"type": "object"
}
],
"requiresRestart": true
},
"network_key": {
"description": "Network encryption key, changing requires repairing all devices!",
"oneOf": [
{
"title": "Network key(string)",
"type": "string"
},
{
"items": {
"type": "number"
},
"title": "Network key(array)",
"type": "array"
}
],
"requiresRestart": true,
"title": "Network key"
},
"output": {
"description": "Examples when 'state' of a device is published json: topic: 'zigbee2mqtt\/my_bulb' payload '{\"state\": \"ON\"}' attribute: topic 'zigbee2mqtt\/my_bulb\/state' payload 'ON' attribute_and_json: both json and attribute (see above)",
"enum": [
"attribute_and_json",
"attribute",
"json"
],
"title": "MQTT output type",
"type": "string"
},
"pan_id": {
"description": "ZigBee pan ID, changing requires repairing all devices!",
"oneOf": [
{
"title": "Pan ID (string)",
"type": "string"
},
{
"title": "Pan ID (number)",
"type": "number"
}
],
"requiresRestart": true,
"title": "Pan ID"
},
"timestamp_format": {
"description": "Log timestamp format",
"examples": [
"YYYY-MM-DD HH:mm:ss"
],
"requiresRestart": true,
"title": "Timestamp format",
"type": "string"
},
"transmit_power": {
"description": "Transmit power of adapter, only available for Z-Stack (CC253*\/CC2652\/CC1352) adapters, CC2652 = 5dbm, CC1352 max is = 20dbm (5dbm default)",
"requiresRestart": true,
"title": "Transmit power",
"type": [
"number",
"null"
]
}
},
"title": "Advanced",
"type": "object"
},
"availability": {
"description": "Checks whether devices are online\/offline",
"oneOf": [
{
"title": "Availability (simple)",
"type": "boolean"
},
{
"properties": {
"active": {
"description": "Options for active devices (routers\/mains powered)",
"properties": {
"timeout": {
"default": 10,
"description": "Time after which an active device will be marked as offline in minutes",
"requiresRestart": true,
"title": "Timeout",
"type": "number"
}
},
"requiresRestart": true,
"title": "Active",
"type": "object"
},
"passive": {
"description": "Options for passive devices (mostly battery powered)",
"properties": {
"timeout": {
"default": 1500,
"description": "Time after which an passive device will be marked as offline in minutes",
"requiresRestart": true,
"title": "Timeout",
"type": "number"
}
},
"requiresRestart": true,
"title": "Passive",
"type": "object"
}
},
"title": "Availability (advanced)",
"type": "object"
}
],
"requiresRestart": true,
"title": "Availability"
},
"ban": {
"items": {
"type": "string"
},
"readOnly": true,
"requiresRestart": true,
"title": "Ban (deprecated, use blocklist)",
"type": "array"
},
"blocklist": {
"description": "Block devices from the network (by ieeeAddr)",
"items": {
"type": "string"
},
"requiresRestart": true,
"title": "Blocklist",
"type": "array"
},
"device_options": {
"title": "Options that are applied to all devices",
"type": "object"
},
"devices": {
"patternProperties": {
"^.*$": {
"$ref": "#\/definitions\/device"
}
},
"propertyNames": {
"pattern": "^0x[\\d\\w]{16}$"
},
"type": "object"
},
"external_converters": {
"description": "You can define external converters to e.g. add support for a DiY device",
"examples": [
"DIYRuZ_FreePad.js"
],
"items": {
"type": "string"
},
"requiresRestart": true,
"title": "External converters",
"type": "array"
},
"frontend": {
"oneOf": [
{
"title": "Frontend (simple)",
"type": "boolean"
},
{
"properties": {
"auth_token": {
"description": "Enables authentication, disabled by default",
"requiresRestart": true,
"title": "Auth token",
"type": [
"string",
"null"
]
},
"host": {
"description": "Frontend binding host. Binds to a unix socket when an absolute path is given instead.",
"examples": [
"127.0.0.1",
"::1",
"\/run\/zigbee2mqtt\/zigbee2mqtt.sock"
],
"requiresRestart": true,
"title": "Bind host",
"type": [
"string",
"null"
]
},
"port": {
"default": 8080,
"description": "Frontend binding port. Ignored when using a unix domain socket",
"requiresRestart": true,
"title": "Port",
"type": "number"
},
"ssl_cert": {
"description": "SSL Certificate file path for exposing HTTPS. The sibling property 'ssl_key' must be set for HTTPS to be activated.",
"requiresRestart": true,
"title": "Certificate file path",
"type": [
"string",
"null"
]
},
"ssl_key": {
"description": "SSL key file path for exposing HTTPS. The sibling property 'ssl_cert' must be set for HTTPS to be activated.",
"requiresRestart": true,
"title": "key file path",
"type": [
"string",
"null"
]
},
"url": {
"description": "URL on which the frontend can be reached, currently only used for the Home Assistant device configuration page",
"requiresRestart": true,
"title": "URL",
"type": [
"string",
"null"
]
}
},
"title": "Frontend (advanced)",
"type": "object"
}
],
"requiresRestart": true,
"title": "Frontend"
},
"groups": {
"patternProperties": {
"^.*$": {
"$ref": "#\/definitions\/group"
}
},
"propertyNames": {
"pattern": "^[\\w].*$"
},
"type": "object"
},
"homeassistant": {
"default": false,
"description": "Home Assistant integration (MQTT discovery)",
"oneOf": [
{
"title": "Home Assistant (simple)",
"type": "boolean"
},
{
"properties": {
"discovery_topic": {
"description": "Home Assistant discovery topic",
"examples": [
"homeassistant"
],
"requiresRestart": true,
"title": "Homeassistant discovery topic",
"type": "string"
},
"legacy_entity_attributes": {
"default": true,
"description": "Home Assistant legacy entity attributes, when enabled Zigbee2MQTT will add state attributes to each entity, additional to the separate entities and devices it already creates",
"title": "Home Assistant legacy entity attributes",
"type": "boolean"
},
"legacy_triggers": {
"default": true,
"description": "Home Assistant legacy triggers, when enabled Zigbee2mqt will send an empty 'action' or 'click' after one has been send. A 'sensor_action' and 'sensor_click' will be discoverd",
"title": "Home Assistant legacy triggers",
"type": "boolean"
},
"status_topic": {
"description": "Home Assistant status topic",
"examples": [
"homeassistant\/status"
],
"requiresRestart": true,
"title": "Home Assistant status topic",
"type": "string"
}
},
"title": "Home Assistant (advanced)",
"type": "object"
}
],
"requiresRestart": true,
"title": "Home Assistant integration"
},