Open KipK opened 1 month ago
I don't know if we can expose data who are on object.
@Koenkk can we expose some attribute from attribute object key ?
e.binary('DEP_REF_POW', ea.STATE, true, false).withProperty('statusRegister_breakout.depassement_ref_pow')
I just tried it on my Z2M instance with an external convert but the stay on N/A
...
@ralmn I've also tried to manually create a discovery topic, but failed same as you. Thought I've missed something on my side.
Here is what I've manually tested as discovery topic but HASS gives "Unkown" for this entity.
{
"availability": [
{
"topic": "zigbee2mqtt/bridge/state",
"value_template": "{{ value_json.state }}"
},
{
"topic": "zigbee2mqtt/Linky/availability",
"value_template": "{{ value_json.state }}"
}
],
"availability_mode": "all",
"device": {
"identifiers": [
"zigbee2mqtt_0x00158d000638e0dc"
],
"manufacturer": "LiXee",
"model": "Lixee ZLinky (ZLinky_TIC)",
"name": "Linky",
"sw_version": "4000-0014",
"via_device": "zigbee2mqtt_bridge_0xe0798dfffea81c6e"
},
"enabled_by_default": true,
"name": "DEPASSEMENT",
"object_id": "linky_status_register_breakout",
"origin": {
"name": "Zigbee2MQTT",
"sw": "1.40.2",
"url": "https://www.zigbee2mqtt.io"
},
"state_topic": "zigbee2mqtt/Linky",
"unique_id": "0x00158d000638e0dc_status_register_breakout_zigbee2mqtt",
"value_template": "{{ value_json.status_register_breakout.depassement_ref_pow}}"
}
Looks like it's more an Home Assistant issue with nested json data. I wonder if it wouldn't be better to move those breakout data at the top level if it's not something that can;t be fixed easily on Home Assistant side.
Interesting, for whatever reason home assistant didn't parse nested json with dot path. However, when using brackets it then works ok with discovery topic.
this works:
{
"availability": [
{
"topic": "zigbee2mqtt/bridge/state",
"value_template": "{{ value_json.state }}"
},
{
"topic": "zigbee2mqtt/Linky/availability",
"value_template": "{{ value_json.state }}"
}
],
"availability_mode": "all",
"device": {
"identifiers": [
"zigbee2mqtt_0x00158d000638e0dc"
],
"manufacturer": "LiXee",
"model": "Lixee ZLinky (ZLinky_TIC)",
"name": "Linky",
"sw_version": "4000-0014",
"via_device": "zigbee2mqtt_bridge_0xe0798dfffea81c6e"
},
"enabled_by_default": true,
"name": "DEPASSEMENT",
"object_id": "linky_status_register_breakout_depassement_ref_pow",
"origin": {
"name": "Zigbee2MQTT",
"sw": "1.40.2",
"url": "https://www.zigbee2mqtt.io"
},
"state_topic": "zigbee2mqtt/Linky",
"unique_id": "0x00158d000638e0dc_status_register_breakout_depassement_zigbee2mqtt",
"value_template": "{{ value_json['status_register_breakout']['depassement_ref_pow'] }}"
}
What happened?
@vk496 @ralmn
Not all entities exposed through discovery topic on Lixee ZLinky_TIC. I can see the Lixee status_register breakout data published in /zigbee2mqtt/linky topic: Those data are issued from status_register topic, using bitwise operations
But Discovery topic do not expose those breakout data. Could it be possible to add those to the discovery topics? For example the "depassement_ref_pow" is a really important data to have, it's the signal you're overpowering.
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.40.2
Adapter firmware version
ember 8.0.1
Adapter
Ember Sonff-E
Setup
z2m in lxc, HASS in vm
Debug log
No response