RobHofmann / HomeAssistant-GreeClimateComponent

Custom Gree climate component written in Python3 for Home Assistant. Controls AC's supporting the Gree protocol.
GNU General Public License v3.0
318 stars 106 forks source link

I'm a novice. Lights entity can't find it #128

Closed ClearSeve closed 6 months ago

ClearSeve commented 2 years ago
- platform: gree
  name: kongtiao
  host: 192.168.1.100
  port: 7000
  mac: '50:2C:C6:86:0C:00'
  encryption_key: 'T3vtLF7ppH5plb7r'
  target_temp_step: 1
  lights: input_boolean.keting_kongtiao_lights

It can be used normally, but the value input_boolean.keting_kongtiao_lights cannot be found during automation

Piteras00 commented 2 years ago

You need to create your own booleans in configuration.yaml for the integration to use them. In your case:

input_boolean:
  keting_kongtiao_lights:
    name: "whatever you want it to show up as"

I put mine right after default_config: directive, here's my config for example:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

input_boolean:
  ac_lights:
    name: "Lights"
  ac_xfan:
    name: "X-Fan"
  ac_health:
    name: "Health mode"

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensor.yaml
climate: !include climate.yaml