Skip to content

[Bug ?] Use another entity's attribute to display attribute #1403

Description

@acress1

Hi,

I'm creating a Bubble Card Button>Switch>Climate, for my Thermostat Valve (entity: climate.salon).
And instead of displaying the "climate.salon" current_temperature attribute, I would like to display the entity "climate.smart_thermostat_x" current_temperature attribute.
I tried to put in YAML :
attribute: hass.states['climate.smart_thermostat_x'].attribute.current_temperature (as explained in the README)

But nothing happens, and even the card is hiding if I validate.
Could you help please ?

Otherwise, the full YAML for my card (without the attribute option) is :
`type: custom:bubble-card
card_type: climate
sub_button:

  • name: HVAC modes menu
    select_attribute: hvac_modes
    state_background: false
    show_arrow: false
    show_icon: true
    show_name: false
    show_last_changed: false
    state_color: true
    show_attribute: true
    show_state: false
    entity: climate.salon
    tap_action:
    action: perform-action
    perform_action: climate.toggle
    target:
    entity_id: climate.salon
    `
    Thanks a lot,
    Cress

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions