AirZone Card Master and Slave Zones

Hi,

AirZone Slave Zones can’t change hvac_mode, they only can start, stop, change temperature and time to sleep.

I configure based on “mini-climate” card from HACS (GitHub - artem-sedykh/mini-climate-card: Minimalistic climate card for Home Assistant Lovelace UI) two kind of card, the first for master zone and the second one to slave zone.

Master zone card where you can change hvac_mode (zone name is “salon” or “sala3n”):

type: custom:mini-climate
entity: climate.salon
secondary_info: hvac-mode
buttons:
  sleep:
    type: dropdown
    icon: mdi:sleep
    active: state => state !== 'off'
    location: main
    state:
      entity: select.sala3n_sleep
    source:
      'off': 'off'
      30m: 30m
      60m: 60m
      90m: 90m
    change_action: >
      (selected, state, entity) => this.call_service('select', 'select_option',
      { entity_id: entity.entity_id, option: selected })
indicators:
  humidity:
    icon: mdi:water
    unit: '%'
    round: 1
    source:
      entity: sensor.salon_humidity

And the second one is for slave zone where only can turn on or turn off:

type: custom:mini-climate
entity: climate.h_matrimoni
secondary_info: hvac-mode
hvac_mode:
  hide: true
buttons:
  power:
    icon: mdi:power-plug
    location: main
    state:
      attribute: hvac_action
    toggle_action: >
      (state, entity) => this.call_service('climate', (state === 'off')?
      'turn_on': 'turn_off', {entity_id: entity.entity_id})
  sleep:
    type: dropdown
    icon: mdi:sleep
    active: state => state !== 'off'
    location: main
    state:
      entity: select.h_matrimoni_sleep
    source:
      'off': 'off'
      30m: 30m
      60m: 60m
      90m: 90m
    change_action: >
      (selected, state, entity) => this.call_service('select', 'select_option',
      { entity_id: entity.entity_id, option: selected })
indicators:
  humidity:
    icon: mdi:water
    unit: '%'
    round: 1
    source:
      entity: sensor.h_matrimoni_humidity
  battery:
    icon: mdi:battery
    source:
      entity: binary_sensor.h_matrimoni_battery_low
    hide: |
      (state) => state === 'off'

The biggest differences are:
hvac_mode:
hide: true

And the power button.

“Salon” is the Master and “H Matrimoni” is the slave:

Screenshot 2023-06-17 at 11.44.37

If I can help someone I will happy. And If someone have any question I will try to answer.

1 Like