I have some sensors like this one:


  - name: "Sala"
    unique_id: "temp_sala"
    state_topic: "zigbee2mqtt/temp_sala"
    value_template: "{{ value_json.temperature }}"
    unit_of_measurement: "°C"

Those sensors publish the battery status too, how can I add it? Thanks!

  • CondorWonder
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Then to link the entities together into a device you need to mimic the auto discovery, or you just have two split entities.

    I suppose you could create a template entity with the battery as an attribute to see it in the details view, but you still need the entities with the raw data. I’d be more inclined to create the device with auto discovery, seems like a cleaner way to go.