Lyr3x / Roode

A reliable smart home people counter based on VL53L1X and ESPHome
The Unlicense
149 stars 41 forks source link

how can I integrate the sensor into Home Assistant? #115

Closed dioem1985 closed 2 years ago

dioem1985 commented 2 years ago

Hello, how can I integrate the sensor into Home Assistant? I only get an error message that it cannot find the platform root.

I need help please

Configuration incorrect

Platform error number.roode - Integration 'roode' not found. Platform error sensor.roode - Integration 'roode' not found. Platform error binary_sensor.roode - Integration 'roode' not found.

My configuration.yaml configuration.

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

default_config:

Text to speech

tts:

binary_sensor:

sensor:

number:

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

Can you please describe to me how it works correctly? Thank you very much

Lyr3x commented 2 years ago
  1. please use code format when posting code or configs
  2. What are you trying to do? That looks like you paste esphome config into home assistant configs ?
dioem1985 commented 2 years ago

The log form the esp32

INFO Reading configuration /config/esphome/roode.yaml... INFO Updating https://github.com/Lyr3x/Roode.git@master INFO Starting log output from roode.local using esphome API INFO Successfully connected to roode.local [16:15:09][I][app:102]: ESPHome version 2022.1.2 compiled on Jan 27 2022, 15:39:44

[16:15:09][C][wifi:351]: SSID: [redacted] [16:15:09][C][wifi:352]: IP Address: 192.168.178.42 [16:15:09][C][wifi:354]: BSSID: [redacted]

[16:15:09][C][wifi:357]: Signal strength: -59 dB ▂▄▆█ [16:15:09][C][wifi:361]: Channel: 6 [16:15:09][C][wifi:362]: Subnet: 255.255.255.0 [16:15:09][C][wifi:363]: Gateway: 192.168.178.1 [16:15:09][C][wifi:364]: DNS1: 192.168.178.1 [16:15:09][C][wifi:365]: DNS2: 0.0.0.0

[16:15:09][C][logger:234]: Level: DEBUG [16:15:09][C][logger:235]: Log Baud Rate: 115200 [16:15:09][C][logger:236]: Hardware UART: UART0 [16:15:09][C][i2c.arduino:037]: I2C Bus: [16:15:09][C][i2c.arduino:038]: SDA Pin: GPIO21 [16:15:09][C][i2c.arduino:039]: SCL Pin: GPIO22 [16:15:09][C][i2c.arduino:040]: Frequency: 400000 Hz [16:15:09][C][i2c.arduino:043]: Recovery: bus successfully recovered [16:15:09][I][i2c.arduino:053]: Results from i2c bus scan: [16:15:09][I][i2c.arduino:059]: Found i2c device at address 0x29

[16:15:09][C][VL53L1X:008]: Address: 0x29 [16:15:09][C][VL53L1X:010]: Ranging: Medium

[16:15:10][C][Roode:007]: Sample size: 2 [16:15:10][C][Roode:008]: Update Interval: 0.000s

[16:15:10][C][Zone:008]: ROI: { width: 6, height: 16, center: 159 } [16:15:10][C][Zone:011]: Threshold: { min: 0mm (0%), max: 1071mm (85%), idle: 1260mm }

[16:15:10][C][Zone:008]: ROI: { width: 6, height: 16, center: 239 } [16:15:10][C][Zone:011]: Threshold: { min: 0mm (0%), max: 1200mm (85%), idle: 1412mm } [16:15:10][C][captive_portal:144]: Captive Portal: [16:15:10][C][ota:082]: Over-The-Air Updates: [16:15:10][C][ota:083]: Address: roode.local:3232 [16:15:10][C][ota:086]: Using Password. [16:15:10][C][api:134]: API Server: [16:15:10][C][api:135]: Address: roode.local:6053 [16:15:10][C][api:139]: Using noise encryption: NO

[16:15:10][C][mdns:085]: Hostname: roode [16:15:11][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:11][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 3 [16:15:12][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:12][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:12][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:12][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 2 [16:15:12][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 3 [16:15:12][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 2 [16:15:12][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:12][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:13][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 2 [16:15:13][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 3 [16:15:13][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:13][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:13][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:13][I][Roode pathTracking:152]: Entry detected. [16:15:13][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:14][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 3 [16:15:14][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:14][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:14][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:14][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:14][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 3 [16:15:15][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 2 [16:15:15][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:15][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:15][I][Roode pathTracking:144]: Exit detected. [16:15:15][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:16][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:16][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:17][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:17][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:17][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:17][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:17][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:17][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:19][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:19][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:19][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:19][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:19][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:19][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:20][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:20][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:20][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:20][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:20][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:20][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0 [16:15:25][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 1 [16:15:25][D][Roode:128]: Event has occured, AllZonesCurrentStatus: 0 [16:15:25][D][Roode:135]: Nobody anywhere, AllZonesCurrentStatus: 0

Yes, I wrote the code for the sensor in the HA config.

`

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

default_config:

Text to speech

tts:

binary_sensor:

sensor:

group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml ` Where do these settings have to go, in which config? Thank you for your reply.

pepe59 commented 2 years ago

As mentioned above: format your code correctly. You do not need to insert anything into the HA configuration. Entities are created: integration - ESPhome - node roode. Use entities in automation or as needed.

dioem1985 commented 2 years ago

Got it done Many Thanks.