hass-cozylife icon indicating copy to clipboard operation
hass-cozylife copied to clipboard

How to add the integration?

Open miguelpucela opened this issue 1 year ago • 4 comments

I think the instructions are not sufficiently clear, or I miss somthing.

I follow these steps to set up the integration:

  • In HACS, add custom repository: https://github.com/yangqian/hass-cozylife
  • Explore and Download Repositories: Cozylife -> Download
  • Restart HA
  • I execute: py getconfig.py 10.11.12.198 10.11.12.200 and get
lights:
- platform: cozylife
  lights:
  - ip: 10.11.12.199
    did: 671630877cb94cb41bcd
    pid: d50v0i
    dmn: Music Rhythm Light Strip
    dpid: [1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14]
    device_type: 01

switch:
- platform: cozylife
  switches:
  • I copy these lines to my configuration.yaml

After this, I get next error:

Invalid config
The following integrations and platforms could not be set up:

lights (Show logs)

In the logs:

Logger: homeassistant.setup
Source: setup.py:221
First occurred: 19:03:06 (1 occurrences)
Last logged: 19:03:06

Setup failed for 'lights': Integration not found.

I've also tried to add: hass-cozylife: or cozylife: or hass_cozylife_local_pull:

to configuration.yaml without success.

What am I missing? Thanks!

miguelpucela avatar Dec 18 '23 18:12 miguelpucela