hi,
i’ve connected home automation to zigbee2mqtt by the automatic discovery way. A lot of devices as been created but i can’t find the associated yaml configuration file in the files editor. Where can i find this file ?
thanks
hi,
i’ve connected home automation to zigbee2mqtt by the automatic discovery way. A lot of devices as been created but i can’t find the associated yaml configuration file in the files editor. Where can i find this file ?
thanks
It does not exist. Discovered devices are stored as json in the .storage registry. This is not meant to be user editable.
What do you want to do?
i’ve a few problems with the discovery. Some switch don’t want to work and i’d like to see the definition of them created by the discovery.
And if I a create a same switch by myself i’ve no problem.
for exemple the auto discovery switch.lumiere_nuit_bas doesn’t work and the same switch design by myself switch.cmde_lumierebas1 work.
This json file is in binary ?
no it’s in regular text but in json format instead of yaml
thank you and where i can find the storage registry ?
it’s in your config directory in the possibly hidden .storage folder (note the “.”)
ok i’ve found the definition in /usr/share/hassio/homeassistant/.storage file= core.entity_registry
{
"area_id": null,
"capabilities": null,
"config_entry_id": "1baa6d32c627fcc8380eab7b5b7fc81b",
"device_class": null,
"device_id": "b71ff758470a4e656a8cf6090cfc2fc3",
"disabled_by": null,
"entity_category": null,
"entity_id": "switch.lumiere_nuit_bas",
"icon": null,
"id": "2ae688992110e68109f35f55bf7fcafd",
"name": null,
"options": {},
"original_device_class": null,
"original_icon": null,
"original_name": "lumiere nuit bas",
"platform": "mqtt",
"supported_features": 0,
"unique_id": "0x000d6ffffeaacf99_switch_zigbee2mqtt",
"unit_of_measurement": null
},
difficult for me to see if all is right.
i think my problem come from my home assistant integration in zigbee2mqtt software.
i’ve tried to change a few thinks and for the moment all work fine now.
when i click for switch off the light 2 messages are send on mqtt
zigbee2mqtt/lumiere nuit bas
{
"linkquality": 255,
"power_on_behavior": null,
"state": "OFF",
"update": {
"state": "available"
},
"update_available": true
}
ziggbee2mqtt/bridge/logging :
{
"level": "info",
"message": "MQTT publish: topic 'zigbee2mqtt/lumiere nuit bas', payload '{\"linkquality\":255,\"power_on_behavior\":null,\"state\":\"OFF\",\"update\":{\"state\":\"available\"},\"update_available\":true}'"
}
``
before the changes i'd only the first message