Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96123

Two actions for button

$
0
0

@Pablo_Gustavo_Fiscel wrote:

Hi friends.

This code turns on the air conditioner.

cards:
  - entity: switch.aire
    icon: 'mdi:air-conditioner'
    name: Aire
    show_icon: true
    show_name: true
    tap_action:
      action: toggle
    theme: default
    type: entity-button

But I also need to change the mode of the climate card.
My problem is that the climate card turns on the air at 27 degrees and turns it off at 26 (temperature of an aquarium).
The problem is that if someone in the house turns on the air with the button of another card, when the aquarium reaches 26 the air is turned off.
For this reason, I need that when I press the button on the card to turn on the air manually, the climate card will turn off and when I turn off the button the climate card will turn on.
Thank you very much

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 96123

Trending Articles