screek-human-sensor's People
Forkers
martin22 brodie182 chinedu40 victorigualada stachdude neckyaan kvikindi buddahsfever cuihaijun dafi87 obbers ericvitale josh-sanders benjamest kiklhorn lanealucy gohlas inspi8 wolffman122 thezoker horga83 jackokic dincojazz fernac03 noobookbig xtalkme octopussagascreek-human-sensor's Issues
[Feature Request] read zones from radar
hi, i have added an antenna to my radar so i can use bluetooth and their app to set zones because i found that easier than using home assistant. but then i realised the zones are not updated in home assistant. the other esp home library has a button to pull the zone info from the radar. it would be great if this could have that too
how does the Zout1 zone work?
im trying to work out how zones work here but things dont seem to match what other documentation for the radar says. spesificaly around Zout1. all the other documentation and implementations i have looked at have no zones, 3 include zones or 3 exclude zones. none of them have the 3 include + 1 exclude setup. this includes the official app.
so i have 2 questions, how is this being done and is there a way to get the 3 exclude mode working with this setup?
Flashing 1w fails
Hello,
I tried to flash 1W model but wasnt successful. What is right way to flash it?
$ docker run --rm --privileged -v "${PWD}":/config --device=/dev/ttyACM0 -it ghcr.io/esphome/esphome run screek-humen-dectet-1w.yaml
Creating cache directory /config/.esphome/platformio
You can change this behavior by mounting a directory to the container's /cache directory.
INFO Reading configuration screek-humen-dectet-1w.yaml...
INFO Detected timezone 'Etc/UTC'
Failed config
light.status_led: [source screek-humen-dectet-1w.yaml:96]
platform: status_led
name: sys_status
This pin cannot be used on ESP32-C3s and is already used by the SPI/PSRAM interface (function: SPIHD).
pin: GPIO12
internal: True
restore_mode: ALWAYS_OFF
light.status_led: [source screek-humen-dectet-1w.yaml:101]
platform: status_led
name: sys_status
This pin cannot be used on ESP32-C3s and is already used by the SPI/PSRAM interface (function: SPIWP).
pin: GPIO13
internal: True
restore_mode: ALWAYS_OFF
Entity cannot be added as the entity category is set to config
Since the update to 2024.1.0b0 I have this error in my logs:
Error adding entities for domain sensor with platform esphome
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 754, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1023, in add_to_platform_finish
await self.async_internal_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 279, in async_internal_added_to_hass
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Entity sensor.s9phl5_355aac_zone1_info cannot be added as the entity category is set to config
Here is some more context:
Koenkk/zigbee2mqtt#19434
I think the easiest way would be to change the category from config
to diagnostic
Ld2450
Disconnecting frequently from WiFi
Hi,
I built two sensors using your code based on the 1u, and I've got an issue since day one :
The esp has troubles to connect to wifi, sometimes it does, sometimes I have to reboot it after a while to try again.
Even when connected, it sometimes loses completely the network, and can't connect again unless I restart it manually.
I've tried to change my wifi channel, channel width from 40 to 20, fixed IP on my DHCP server, and splitting my 5 and 2.4 ghz network SSIDs, but it seems to be the same.
The only changes I've made from your YAML file are :
- Name, Friendly name & Comment
- Enable MQTT
- Disable Home Assistant API
- WiFi Credentials
Here is the log I could find :
[W][wifi_esp32:458]: Event: Disconnected ssid='Freebox-504602' bssid=[redacted] reason='Beacon Timeout'
[W][wifi:604]: Error while connecting to network.
[W][wifi:640]: Restarting WiFi adapter...
[I][wifi:286]: WiFi Connecting to 'Freebox-504602'...
[...]
[D][wifi:456]: Found networks:
[I][wifi:500]: - 'Freebox-504602' [redacted]▂▄▆█
[D][wifi:501]: Channel: 6
[D][wifi:502]: RSSI: -78 dB
[I][wifi:500]: - 'Freebox-504602' [redacted]▂▄▆█
[D][wifi:501]: Channel: 6
[D][wifi:502]: RSSI: -59 dB
[D][wifi:505]: - [redacted] [redacted]▂▄▆█
[D][wifi:505]: - [redacted] [redacted]▂▄▆█
[I][wifi:286]: WiFi Connecting to 'Freebox-504602'...
My YAML file :
# This is a custom firmware for Human Presence Sensor 1U
# https://screek.io/1u
esphome:
name: capteur_wc
comment: Capteur_WC
friendly_name: Capteur_WC
name_add_mac_suffix: True
platformio_options:
board_build.flash_mode: dio
board_build.f_cpu: 80000000L
on_boot:
priority: 900
then:
lambda: |-
id(cpu_speed) = ESP.getCpuFreqMHz() ;
project:
name: Screek.Human_Presence_Sensor
version: 1U
min_version: 2023.6.1
globals:
- id: cpu_speed
type: int
restore_value: no
initial_value: '0'
external_components:
# - source: github://screek-workshop/custom_components_support_for_screek_1u
- source:
type: git
url: https://github.com/screek-workshop/custom_components_support_for_screek_1u
ref: master
# components: [ ld2410, uart ]
esp32:
board: lolin_s2_mini
framework:
type: arduino
version: 2.0.9
platform_version: 6.3.2
improv_serial:
logger:
hardware_uart: uart0
mqtt:
broker: [Redacted]
discovery: false
ota:
# This won't work for the original firmware(we use diffrent ota password),
# so if you want to turn it into your own OTA,
# make sure to completely flash your custom yaml in the firmware once.
# after that, you may always ota with your own password.
password: ""
safe_mode: False
# By automatically importing to the console,
# subsequent adjustments can be easily made without having to manually fix a specific name.
# dashboard_import:
# package_import_url: github://screekworkshop/screek-human-sensor/1u/yaml/[email protected]
# import_full_config: False
wifi:
# power_save_mode: NONE
ssid: Freebox-504602
password: [Redacted]
output_power: 15dB
power_save_mode: LIGHT
reboot_timeout: 10min
ap:
ssid: "capteur_wc"
password: [Redacted]
captive_portal:
web_server:
port: 80
binary_sensor:
- platform: status
name: Online
id: ink_ha_connected
- platform: ld2410
has_target:
name: Presence
has_moving_target:
name: Moving Target
has_still_target:
name: Still Target
sensor:
- platform: template
name: "ESP Cpu Speed"
accuracy_decimals: 0
unit_of_measurement: Mhz
lambda: |-
return (id(cpu_speed));
entity_category: "diagnostic"
# - platform: internal_temperature
# id: sys_esp_temperature
# name: ESP Temperature
# unit_of_measurement: °C
# device_class: TEMPERATURE
# update_interval: 1s
# entity_category: "diagnostic"
- platform: template
id: sys_esp_temperature
name: ESP Temperature
lambda: return temperatureRead();
unit_of_measurement: °C
device_class: TEMPERATURE
update_interval: 5s
entity_category: "diagnostic"
- platform: uptime
name: Uptime
id: sys_uptime
update_interval: 10s
- platform: wifi_signal
name: RSSI
id: wifi_signal_db
update_interval: 5s
entity_category: "diagnostic"
- platform: template
id: esp_memory
icon: mdi:memory
name: ESP Free Memory
lambda: return heap_caps_get_free_size(MALLOC_CAP_INTERNAL) / 1024;
unit_of_measurement: 'kB'
state_class: measurement
entity_category: "diagnostic"
- platform: ld2410
moving_distance:
name : Moving Distance
id: moving_distance
still_distance:
name: Still Distance
id: still_distance
moving_energy:
name: Move Energy
still_energy:
name: Still Energy
detection_distance:
name: Detection Distance
light:
name: Sun Light
light:
- platform: status_led
name: sys_status
pin: GPIO15
internal: True
restore_mode: ALWAYS_OFF
time:
- platform: sntp
id: time_sntp
uart:
id: uart_ld2410
tx_pin: GPIO18
rx_pin: GPIO33
baud_rate: 256000
parity: NONE
stop_bits: 1
ld2410:
timeout: 150s
id: ld2410_radar
# max_move_distance : 6m
# max_still_distance: 0.75m
# g0_move_threshold: 10
# g0_still_threshold: 20
# g1_move_threshold: 10
# g1_still_threshold: 20
# g2_move_threshold: 20
# g2_still_threshold: 21
# g3_move_threshold: 30
# g3_still_threshold: 31
# g4_move_threshold: 40
# g4_still_threshold: 41
# g5_move_threshold: 50
# g5_still_threshold: 51
# g6_move_threshold: 60
# g6_still_threshold: 61
# g7_move_threshold: 70
# g7_still_threshold: 71
# g8_move_threshold: 80
# g8_still_threshold: 81
button:
- platform: template
name: "Enable LD2410 BLE"
# disabled_by_default: True
entity_category: "config"
icon: mdi:bluetooth
on_press:
lambda: |-
id(ld2410_radar) -> ble_control(true);
- platform: template
name: "Disable LD2410 BLE"
# disabled_by_default: True
entity_category: "config"
icon: mdi:bluetooth-off
on_press:
lambda: |-
id(ld2410_radar) -> ble_control(false);
- platform: template
name: "LD2410 Reboot"
icon: mdi:radar
entity_category: "config"
on_press:
lambda: |-
// auto* radar = LD2410Component::get(ld2410);
// radar -> roboot();
id(ld2410_radar) -> reboot();
- platform: restart
icon: mdi:power-cycle
name: "ESP Reboot"
- platform: factory_reset
disabled_by_default: True
name: Factory Reset
id: factory_reset_all
Here is a log when it does connect :
[I][wifi:500]: - 'Freebox-504602' [redacted]▂▄▆█
[D][wifi:501]: Channel: 6
[D][wifi:502]: RSSI: -57 dB
[I][wifi:500]: - 'Freebox-504602' [redacted]▂▄▆█
[D][wifi:501]: Channel: 6
[D][wifi:502]: RSSI: -79 dB
[D][wifi:505]: - [redacted] [redacted]▂▄▆█
[D][wifi:505]: - [redacted] [redacted]▂▄▆█
[I][wifi:286]: WiFi Connecting to 'Freebox-504602'...
[D][binary_sensor:036]: 'Moving Target': Sending state OFF
[D][sensor:094]: 'Moving Distance': Sending state 55.00000 cm with 0 decimals of accuracy
[D][sensor:094]: 'Move Energy': Sending state 0.00000 % with 0 decimals of accuracy
[D][sensor:094]: 'Still Distance': Sending state 55.00000 cm with 0 decimals of accuracy
[D][sensor:094]: 'Detection Distance': Sending state 53.00000 cm with 0 decimals of accuracy
[D][ld2410:208]: LD2410 Sun Light: 8%
[I][wifi:573]: WiFi Connected!
[C][wifi:391]: Local MAC: 84:F7:03:DD:5C:88
[C][wifi:396]: SSID: [redacted]
[C][wifi:397]: IP Address: 192.168.1.230
[C][wifi:399]: BSSID: [redacted]
[C][wifi:400]: Hostname: 'capteur_wc-dd5c88'
[C][wifi:402]: Signal strength: -57 dB ▂▄▆█
[C][wifi:406]: Channel: 6
[C][wifi:407]: Subnet: 255.255.255.0
[C][wifi:408]: Gateway: 192.168.1.254
[C][wifi:409]: DNS1: 192.168.1.22
[C][wifi:410]: DNS2: 0.0.0.0
[D][wifi:582]: Disabling AP...
[D][binary_sensor:036]: 'Moving Target': Sending state ON
[D][sensor:094]: 'Moving Distance': Sending state 82.00000 cm with 0 decimals of accuracy
[D][sensor:094]: 'Move Energy': Sending state 74.00000 % with 0 decimals of accuracy
[D][sensor:094]: 'Still Distance': Sending state 98.00000 cm with 0 decimals of accuracy
[D][sensor:094]: 'Detection Distance': Sending state 52.00000 cm with 0 decimals of accuracy
[D][ld2410:208]: LD2410 Sun Light: 8%
[C][web_server:123]: Setting up web server...
[C][sntp:028]: Setting up SNTP...
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]: Address: capteur_wc.local:3232
[C][mqtt:037]: Setting up MQTT...
[I][mqtt:234]: Connecting to MQTT...
[I][mqtt:274]: MQTT Connected!
[I][app:062]: setup() finished successfully!
[D][sensor:094]: 'RSSI': Sending state -55.00000 dBm with 0 decimals of accuracy
[D][binary_sensor:036]: 'Online': Sending state ON
IMPROV�����
IMPROV������http://192.168.1.230:80�
[I][app:102]: ESPHome version 2023.11.6 compiled on Dec 11 2023, 22:28:06
[I][app:104]: Project Screek.Human_Presence_Sensor version 1U
[C][status_led:065]: Status Led Light:
[C][status_led:066]: Pin: GPIO15
[D][status_led:030]: Restoring light state OFF
[C][wifi:559]: WiFi:
[C][wifi:391]: Local MAC: 84:F7:03:DD:5C:88
[C][wifi:396]: SSID: [redacted]
[C][wifi:397]: IP Address: 192.168.1.230
[C][wifi:399]: BSSID: [redacted]
[C][wifi:400]: Hostname: 'capteur_wc-dd5c88'
[C][wifi:402]: Signal strength: -56 dB ▂▄▆█
[C][wifi:406]: Channel: 6
[C][wifi:407]: Subnet: 255.255.255.0
[C][wifi:408]: Gateway: 192.168.1.254
[C][wifi:409]: DNS1: 192.168.1.22
[C][wifi:410]: DNS2: 0.0.0.0
[C][logger:416]: Logger:
[C][logger:417]: Level: DEBUG
[C][logger:418]: Log Baud Rate: 115200
[C][logger:420]: Hardware UART: UART0
[C][uart.arduino_esp32:138]: UART Bus 1:
[C][uart.arduino_esp32:139]: TX Pin: GPIO18
[C][uart.arduino_esp32:140]: RX Pin: GPIO33
[C][uart.arduino_esp32:142]: RX Buffer Size: 256
[C][uart.arduino_esp32:144]: Baud Rate: 256000 baud
[C][uart.arduino_esp32:145]: Data Bits: 8
[C][uart.arduino_esp32:146]: Parity: NONE
[C][uart.arduino_esp32:147]: Stop bits: 1
[D][sensor:094]: 'ESP Temperature': Sending state 33.29800 °C with 1 decimals of accuracy
[D][binary_sensor:036]: 'Moving Target': Sending state OFF
[D][sensor:094]: 'Moving Distance': Sending state 158.00000 cm with 0 decimals of accuracy
[D][sensor:094]: 'Move Energy': Sending state 0.00000 % with 0 decimals of accuracy
[D][sensor:094]: 'Still Distance': Sending state 158.00000 cm with 0 decimals of accuracy
[D][sensor:094]: 'Detection Distance': Sending state 76.00000 cm with 0 decimals of accuracy
[D][ld2410:208]: LD2410 Sun Light: 10%
[D][sensor:094]: 'Sun Light': Sending state 10.00000 % with 0 decimals of accuracy
[W][component:214]: Component ld2410 took a long time for an operation (0.11 s).
[W][component:215]: Components should block for at most 20-30ms.
[C][template.sensor:022]: Template Sensor 'ESP Cpu Speed'
[C][template.sensor:022]: State Class: ''
[C][template.sensor:022]: Unit of Measurement: 'Mhz'
[C][template.sensor:022]: Accuracy Decimals: 0
[C][template.sensor:023]: Update Interval: 60.0s
[C][template.sensor:022]: Template Sensor 'ESP Temperature'
[C][template.sensor:022]: Device Class: 'temperature'
[C][template.sensor:022]: State Class: ''
[C][template.sensor:022]: Unit of Measurement: '°C'
[C][template.sensor:022]: Accuracy Decimals: 1
[C][template.sensor:023]: Update Interval: 5.0s
[C][uptime.sensor:031]: Uptime Sensor 'Uptime'
[C][uptime.sensor:031]: Device Class: 'duration'
[C][uptime.sensor:031]: State Class: 'total_increasing'
[C][uptime.sensor:031]: Unit of Measurement: 's'
[C][uptime.sensor:031]: Accuracy Decimals: 0
[C][uptime.sensor:031]: Icon: 'mdi:timer-outline'
[C][template.sensor:022]: Template Sensor 'ESP Free Memory'
[C][template.sensor:022]: State Class: 'measurement'
[C][template.sensor:022]: Unit of Measurement: 'kB'
[C][template.sensor:022]: Accuracy Decimals: 1
[C][template.sensor:022]: Icon: 'mdi:memory'
[C][template.sensor:023]: Update Interval: 60.0s
[C][light:103]: Light 'sys_status'
[C][status:034]: Status Binary Sensor 'Online'
[C][status:034]: Device Class: 'connectivity'
[C][ld2410:012]: LD2410:
[C][ld2410:014]: HasTargetSensor 'Presence'
[C][ld2410:014]: Device Class: 'occupancy'
[C][ld2410:015]: MovingSensor 'Moving Target'
[C][ld2410:015]: Device Class: 'motion'
[C][ld2410:016]: StillSensor 'Still Target'
[C][ld2410:016]: Device Class: 'occupancy'
[C][ld2410:019]: Moving Distance 'Moving Distance'
[C][ld2410:019]: Device Class: 'distance'
[C][ld2410:019]: State Class: ''
[C][ld2410:019]: Unit of Measurement: 'cm'
[C][ld2410:019]: Accuracy Decimals: 0
[C][ld2410:020]: Still Distance 'Still Distance'
[C][ld2410:020]: Device Class: 'distance'
[C][ld2410:020]: State Class: ''
[C][ld2410:020]: Unit of Measurement: 'cm'
[C][ld2410:020]: Accuracy Decimals: 0
[C][ld2410:021]: Moving Energy 'Move Energy'
[C][ld2410:021]: Device Class: 'energy'
[C][ld2410:021]: State Class: ''
[C][ld2410:021]: Unit of Measurement: '%'
[C][ld2410:021]: Accuracy Decimals: 0
[C][ld2410:022]: Still Energy 'Still Energy'
[C][ld2410:022]: Device Class: 'energy'
[C][ld2410:022]: State Class: ''
[C][ld2410:022]: Unit of Measurement: '%'
[C][ld2410:022]: Accuracy Decimals: 0
[C][ld2410:023]: Detection Distance 'Detection Distance'
[C][ld2410:023]: Device Class: 'distance'
[C][ld2410:023]: State Class: ''
[C][ld2410:023]: Unit of Measurement: 'cm'
[C][ld2410:023]: Accuracy Decimals: 0
[C][ld2410:026]: Light 'Sun Light'
[C][ld2410:026]: State Class: ''
[C][ld2410:026]: Unit of Measurement: '%'
[C][ld2410:026]: Accuracy Decimals: 0
[C][ld2410:026]: Icon: 'mdi:brightness-5'
[C][ld2410:032]: Firmware Version : 0.0.0000
[D][sensor:094]: 'RSSI': Sending state -56.00000 dBm with 0 decimals of accuracy
[C][restart.button:017]: Restart Button 'ESP Reboot'
[C][restart.button:017]: Icon: 'mdi:power-cycle'
[C][factory_reset.button:011]: Factory Reset Button 'Factory Reset'
[C][factory_reset.button:011]: Icon: 'mdi:restart-alert'
[D][sensor:094]: 'Uptime': Sending state 106.84100 s with 0 decimals of accuracy
[D][binary_sensor:036]: 'Moving Target': Sending state ON
[D][sensor:094]: 'Moving Distance': Sending state 70.00000 cm with 0 decimals of accuracy
[D][sensor:094]: 'Move Energy': Sending state 100.00000 % with 0 decimals of accuracy
[D][sensor:094]: 'Still Distance': Sending state 75.00000 cm with 0 decimals of accuracy
[D][sensor:094]: 'Detection Distance': Sending state 65.00000 cm with 0 decimals of accuracy
[D][ld2410:208]: LD2410 Sun Light: 10%
[W][component:214]: Component ld2410 took a long time for an operation (0.07 s).
[W][component:215]: Components should block for at most 20-30ms.
[C][captive_portal:088]: Captive Portal:
[C][web_server:168]: Web Server:
[C][web_server:169]: Address: capteur_wc.local:80
[C][sntp:053]: SNTP Time:
[C][sntp:054]: Server 1: '0.pool.ntp.org'
[C][sntp:055]: Server 2: '1.pool.ntp.org'
[C][sntp:056]: Server 3: '2.pool.ntp.org'
[C][sntp:057]: Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[C][mdns:115]: mDNS:
[C][mdns:116]: Hostname: capteur_wc-dd5c88
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]: Address: capteur_wc.local:3232
[C][mqtt:133]: MQTT:
[C][mqtt:135]: Server Address: 192.168.1.28:1883 (192.168.1.28)
[C][mqtt:136]: Username: [redacted]
[C][mqtt:137]: Client ID: [redacted]
[C][mqtt:142]: Topic Prefix: 'capteur_wc'
[C][mqtt:144]: Log Topic: 'capteur_wc/debug'
[C][mqtt:147]: Availability: 'capteur_wc/status'
[C][improv_serial:032]: Improv Serial:
[C][wifi_signal.sensor:009]: WiFi Signal 'RSSI'
[C][wifi_signal.sensor:009]: Device Class: 'signal_strength'
[C][wifi_signal.sensor:009]: State Class: 'measurement'
[C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm'
[C][wifi_signal.sensor:009]: Accuracy Decimals: 0
[C][mqtt.binary_sensor:022]: MQTT Binary Sensor 'Online':
[C][mqtt.binary_sensor:023]: State Topic: 'capteur_wc/status'
[C][mqtt.sensor:028]: MQTT Sensor 'ESP Cpu Speed':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/esp_cpu_speed/state'
[C][mqtt.sensor:028]: MQTT Sensor 'ESP Temperature':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/esp_temperature/state'
[C][mqtt.sensor:028]: MQTT Sensor 'Uptime':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/uptime/state'
[C][mqtt.sensor:028]: MQTT Sensor 'RSSI':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/rssi/state'
[C][mqtt.sensor:028]: MQTT Sensor 'ESP Free Memory':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/esp_free_memory/state'
[C][mqtt.button:029]: MQTT Button 'Enable LD2410 BLE':
[C][mqtt.button:030]: State Topic: 'capteur_wc/button/enable_ld2410_ble/state'
[C][mqtt.button:030]: Command Topic: 'capteur_wc/button/enable_ld2410_ble/command'
[C][mqtt.button:029]: MQTT Button 'Disable LD2410 BLE':
[C][mqtt.button:030]: State Topic: 'capteur_wc/button/disable_ld2410_ble/state'
[C][mqtt.button:030]: Command Topic: 'capteur_wc/button/disable_ld2410_ble/command'
[C][mqtt.button:029]: MQTT Button 'LD2410 Reboot':
[C][mqtt.button:030]: State Topic: 'capteur_wc/button/ld2410_reboot/state'
[C][mqtt.button:030]: Command Topic: 'capteur_wc/button/ld2410_reboot/command'
[D][sntp:078]: Synchronized time: 2023-12-13 23:35:27
[C][mqtt.button:029]: MQTT Button 'ESP Reboot':
[C][mqtt.button:030]: State Topic: 'capteur_wc/button/esp_reboot/state'
[C][mqtt.button:030]: Command Topic: 'capteur_wc/button/esp_reboot/command'
[C][mqtt.button:029]: MQTT Button 'Factory Reset':
[C][mqtt.button:030]: State Topic: 'capteur_wc/button/factory_reset/state'
[C][mqtt.button:030]: Command Topic: 'capteur_wc/button/factory_reset/command'
[C][mqtt.binary_sensor:022]: MQTT Binary Sensor 'Presence':
[C][mqtt.binary_sensor:023]: State Topic: 'capteur_wc/binary_sensor/presence/state'
[C][mqtt.binary_sensor:022]: MQTT Binary Sensor 'Moving Target':
[C][mqtt.binary_sensor:023]: State Topic: 'capteur_wc/binary_sensor/moving_target/state'
[C][mqtt.binary_sensor:022]: MQTT Binary Sensor 'Still Target':
[C][mqtt.binary_sensor:023]: State Topic: 'capteur_wc/binary_sensor/still_target/state'
[D][sensor:094]: 'Moving Distance': Sending state 79.00000 cm with 0 decimals of accuracy
[D][sensor:094]: 'Move Energy': Sending state 57.00000 % with 0 decimals of accuracy
[D][sensor:094]: 'Still Distance': Sending state 76.00000 cm with 0 decimals of accuracy
[D][sensor:094]: 'Detection Distance': Sending state 62.00000 cm with 0 decimals of accuracy
[D][ld2410:208]: LD2410 Sun Light: 8%
[D][sensor:094]: 'Sun Light': Sending state 8.00000 % with 0 decimals of accuracy
[W][component:214]: Component ld2410 took a long time for an operation (0.09 s).
[W][component:215]: Components should block for at most 20-30ms.
[C][mqtt.sensor:028]: MQTT Sensor 'Moving Distance':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/moving_distance/state'
[C][mqtt.sensor:028]: MQTT Sensor 'Still Distance':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/still_distance/state'
[C][mqtt.sensor:028]: MQTT Sensor 'Move Energy':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/move_energy/state'
[C][mqtt.sensor:028]: MQTT Sensor 'Still Energy':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/still_energy/state'
[C][mqtt.sensor:028]: MQTT Sensor 'Detection Distance':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/detection_distance/state'
[C][mqtt.sensor:028]: MQTT Sensor 'Sun Light':
[C][mqtt.sensor:032]: State Topic: 'capteur_wc/sensor/sun_light/state'
Only one target detected
I'm using your yaml file for make some automation in my kitchen.
I hav ecreated two areas and everything work fine, when i enter in these areas light are turning on based on area.
the problem is that when i move from one rea to another and someone else is in that area, only one target is detected.
How can i solve this? Is there any settings to do?
Thanks a lot and have a nice Easter
[Feature Request] Movement sensitivity
As discussed on forums:
There is just a single feature that would make a big difference, and that is to be able to specify the "size" of the area for direction/position values?
The problem is I sit at a desk in front of the sensor, so every second I'm getting micro-movements (forward, backward, static, forward, static, backward, etc). All of these are a few mm different from previous position.
If I could set a minimum distance (100-300mm), then sitting at the desk would be treated as static until I move my whole body.
Is this possible?
Reply (slboat):
Regarding your suggestion, it sounds like a nice kind of advanced feature, which is a more abstract and advanced variation of mobile.
But I'm concerned that if it were to be included in the public firmware, it would cause a lot of confusion and puzzlement for a lot of people.
And at the same time it seems like a problem that could be set up for automation to try to solve, like nodered's workflow that analyzes multiple changes and then virtualizes a static variable.
I think it's a great idea, but to implement it would present a lot of challenges and problems.
human-sensor-2a-stable-github.yaml can't compile with esp-idf
I wanted to add microWakeWord to a device which runs on human-sensor-2a firmware and noticed there are several compile errors:
/config/esphome/human-sensor-2a-stable-github.yaml: In lambda function:
/config/esphome/human-sensor-2a-stable-github.yaml:531:32: error: left operand of comma operator has no effect [-Werror=unused-value]
if (id(zone1_x_begin).state == 0, id(zone1_x_end).state == 0, id(zone1_y_begin).state == 0, id(zone1_y_end).state == 0){
~~~~~~~~~~~~~~~~~~~~~^~~~
/config/esphome/human-sensor-2a-stable-github.yaml:531:57: error: right operand of comma operator has no effect [-Werror=unused-value]
if (id(zone1_x_begin).state == 0, id(zone1_x_end).state == 0, id(zone1_y_begin).state == 0, id(zone1_y_end).state == 0){
~~~~~~~~~~~~~~~~~~~^~~~
/config/esphome/human-sensor-2a-stable-github.yaml:531:84: error: right operand of comma operator has no effect [-Werror=unused-value]
if (id(zone1_x_begin).state == 0, id(zone1_x_end).state == 0, id(zone1_y_begin).state == 0, id(zone1_y_end).state == 0){
~~~~~~~~~~~~~~~~~~~~~^~~~
/config/esphome/human-sensor-2a-stable-github.yaml: In lambda function:
/config/esphome/human-sensor-2a-stable-github.yaml:553:32: error: left operand of comma operator has no effect [-Werror=unused-value]
if (id(zone2_x_begin).state == 0, id(zone2_x_end).state == 0, id(zone2_y_begin).state == 0, id(zone2_y_end).state == 0){
~~~~~~~~~~~~~~~~~~~~~^~~~
/config/esphome/human-sensor-2a-stable-github.yaml:553:57: error: right operand of comma operator has no effect [-Werror=unused-value]
if (id(zone2_x_begin).state == 0, id(zone2_x_end).state == 0, id(zone2_y_begin).state == 0, id(zone2_y_end).state == 0){
~~~~~~~~~~~~~~~~~~~^~~~
/config/esphome/human-sensor-2a-stable-github.yaml:553:84: error: right operand of comma operator has no effect [-Werror=unused-value]
if (id(zone2_x_begin).state == 0, id(zone2_x_end).state == 0, id(zone2_y_begin).state == 0, id(zone2_y_end).state == 0){
~~~~~~~~~~~~~~~~~~~~~^~~~
/config/esphome/human-sensor-2a-stable-github.yaml: In lambda function:
/config/esphome/human-sensor-2a-stable-github.yaml:575:32: error: left operand of comma operator has no effect [-Werror=unused-value]
if (id(zone3_x_begin).state == 0, id(zone3_x_end).state == 0, id(zone3_y_begin).state == 0, id(zone3_y_end).state == 0){
~~~~~~~~~~~~~~~~~~~~~^~~~
/config/esphome/human-sensor-2a-stable-github.yaml:575:57: error: right operand of comma operator has no effect [-Werror=unused-value]
if (id(zone3_x_begin).state == 0, id(zone3_x_end).state == 0, id(zone3_y_begin).state == 0, id(zone3_y_end).state == 0){
~~~~~~~~~~~~~~~~~~~^~~~
/config/esphome/human-sensor-2a-stable-github.yaml:575:84: error: right operand of comma operator has no effect [-Werror=unused-value]
if (id(zone3_x_begin).state == 0, id(zone3_x_end).state == 0, id(zone3_y_begin).state == 0, id(zone3_y_end).state == 0){
~~~~~~~~~~~~~~~~~~~~~^~~~
/config/esphome/human-sensor-2a-stable-github.yaml: In lambda function:
/config/esphome/human-sensor-2a-stable-github.yaml:614:14: error: 'temperatureRead' was not declared in this scope
unit_of_measurement: °C
^~~~~~~~~~~~~~~
Compiling .pioenvs/screek-human-sensor-2a/cbor/tinycbor/src/cborencoder_close_container_checked.o
/config/esphome/human-sensor-2a-stable-github.yaml: In lambda function:
/config/esphome/human-sensor-2a-stable-github.yaml:19:28: error: 'ESP' was not declared in this scope
id(cpu_speed) = ESP.getCpuFreqMHz();
^~~
some stuff like ESP.getCpuFreqMHz()
or temperatureRead()
could just be commented out, but the main lambda function and validation of zones is an issue. You can reproduce the issue by changing to
esp32:
board: lolin_c3_mini
framework:
type: esp-idf
version: recommended
Custom version of LD2410 and UART modules
Hi - just got my sensors today and looking to flash them myself, are there modifications to the LD2410 and UART components that are necessary for the sensor to work? Or can I just use the default esphome provided versions of those components?
I’d like to use the default ones if possible to ensure that they stay up to date and get bug fixes as applied to esphone.
[Question] Power 1U through AC
Hi, I plan to buy a bunch of 1U for my usage. However, I'd like to mount them on the ceiling and connect directly to AC 220-240v power using HLK 2M03 power module from HiLink (https://www.hlktech.net/index.php?id=1158 and data sheet at https://robu.in/wp-content/uploads/2020/02/1912111437_HI-LINK-HLK-2M03_C399249.pdf).
I think I need to connect the 220v AC incoming supply into the two AC points of HLK 2M03 for incoming supply. How do I connect the HLK 2M03 to 1U (S2 Mini with HLK2410C)? Can you guide me on how this can be done?
P.S. I am new to this so any guidance would be appreciated!
2A Zone configuration warning/error
Is throwing a warning
/2a/yaml/human-sensor-2a-stable/github.yaml:532:32: warning: left operand of comma operator has no effect [-Wunused-value]
532 | if (id(zone1_x_begin).state == 0, id(zone1_x_end).state == 0, id(zone1_y_begin).state == 0, id(zone1_y_end).state == 0){
| ~~~~~~~~~~~~~~~~~~~~~^~~~
/2a/yaml/human-sensor-2a-stable/github.yaml:532:57: warning: right operand of comma operator has no effect [-Wunused-value]
which means it is being processed with a warning as if (id(zone1_x_begin.state == 0)) {
and not working as designed
I'm guessing this is supposed to be &&
instead of commas.
The same is happening for zone2 on line 554, and zone3 on line 576
As a result, only having X Begin unset causes it to be listed as zone unconfigured.
Build fails for 2A on ESPHome 2023.09
I can't update my 2a sensors to the latest esphome version because there's a build error when updating.
starting with:
ERROR Unable to import component improv_serial:
There's plenty of errors. They seem to be related to the external components?
I haven't had an issue up to this point.
1u fails to compile with error: cannot convert 'USBCDC*' to 'HardwareSerial*' in assignment
This is referenced here. I think the yaml needs to be updated,
esphome:
name: screek-humen-dectet-1u
comment: Screek Human Presence Sensor 24GHz PS-HPS 1U
friendly_name: Screek Human Presence Sensor 1U
name_add_mac_suffix: True
platformio_options:
board_build.flash_mode: dio
board_build.extra_flags:
- "-DARDUINO_USB_CDC_ON_BOOT=0"
Add presense sensor for Screek Human Sensor 2A
binary_sensor:
- platform: status
name: Online
id: ink_ha_connected - platform: template
name: "Presence Detected"
device_class: occupancy
lambda: |-
if (id(target1_resolution).state > 0
or id(target2_resolution).state > 0
or id(target3_resolution).state > 0) {
return true;
} else {
return false;
}
ID 'uart1' is reserved internally and cannot be used
Another compile error,
Failed config
uart: [source screek-humen-dectet-1u.yaml:114]
-
ID 'uart1' is reserved internally and cannot be used.
id: uart1
tx_pin: GPIO18
rx_pin: GPIO33
baud_rate: 256000
parity: NONE
stop_bits: 1
uart1 is now reserved as per this.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.