새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


● ha작업) 인체감지 tx,rx 통신 안되는 불량을 Vcc,GND,Out만 사용하고 BLE을 재실감지 사용하기

♨ 카랜더 일정 : 2024년06월03일
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    ● ha작업) 인체감지 tx,rx 통신 안되는 불량을  Vcc,GND,Out만 사용하고 BLE을 재실감지 사용하기

    HLK-LD2401c의 구성 사용시  불량으로 인체감지 out 출력만 사용 가능시

    소스를 일부만 사용하면 BLE 소스를 같이 사용 가능

    3232235521_1717342283.804.png

    3232235521_1717342165.5312.png

    esphome:
      name: esp32-s3-8m-ble2-ip74-pin
      friendly_name: esp32_s3_8m_ble2_ip74_pin

    esp32:
      board: esp32-s3-devkitc-1
      framework:
        type: arduino
    # esp32-s3-8m-pin
    api:
      encryption:
        key: "oqKzqRlDdk3NGRwNeb508BRsASdqnz6sAc+Z+ANWvck="

    ota:
      password: "2b94a9cd8beed930f72808241e934b3f"

    wifi:
      ssid: !secret wifi_ssid
      password: !secret wifi_password
      power_save_mode: LIGHT  
      manual_ip:
        static_ip: 192.168.0.74
        gateway: 192.168.0.1
        subnet: 255.255.255.0
        dns1: 8.8.8.8
        dns2: 8.8.4.4
      ap:
        ssid: "Esp32-S3-Ld2410S"
        password: "EpEGixRy6fQH"


    captive_portal:
    # ===========================================  # esphome:
    # ESP32-S3
    # mmwave GPIO2
    # tx_pin: GPIO17
    # rx_pin: GPIO18
    # ===========================================  #

    # web_server:
    #   port: 80
    #   version: 2
    #   include_internal: true

    logger:
      level: ERROR
      baud_rate: 0
      # level: DEBUG  

    uart:
      tx_pin: GPIO17
      rx_pin: GPIO18
      baud_rate: 256000
      parity: NONE
      stop_bits: 1
     

    ld2410:
      id: my_ld2410



    bluetooth_proxy:
      active: false
      # active: true

    esp32_ble_tracker:
      id: entrance_ble_tracker  
      scan_parameters:  # 휴대폰 blu 인식 정보
        interval: 160ms  # 스캔 간격을 더 자주 스캔하도록 변경
        window: 160ms     # 스캔 창을 더 넓게 설정하여 더 많은 장치를 감지할 수 있도록 함
        active: true     # 활성 스캔 활성화
        duration: 30s

    # BLE송신기(transmitting)
    binary_sensor:
      - platform: ble_presence
        device_class: presence
        ibeacon_uuid: 'a26fbca9-870e-4293-ad0b-aab3e0defc4e'
        name: "9045-BLE"
        id: myphone_9045_ibeacon_presence
        timeout: 60s
        # a26fbca9-870e-4293-ad0b-aab3e0defc4e_100_40004  중에서 _100_40004 제외

      - platform: ble_presence
        device_class: presence
        ibeacon_uuid: '8c592027-1d90-4acf-89e4-5C1644129fb5'
        name: "5763-BLE"
        id: mywife_5763_ibeacon_presence
        timeout: 60s
        # 8c592027-1d90-4acf-89e4-5C1644129fb5_100_40004  중에서 _100_40004 제외

      - platform: ble_presence
        ibeacon_uuid: 'bc2db27c-48f4-4616-a171-82cdbcb4a6aa'
        name: "8655-BLE"
        id: home_phone_8655_ibeacon_presence
        timeout: 60s
        # bc2db27c-48f4-4616-a171-82cdbcb4a6aa_100_40004

    # binary_sensor:
      - platform: gpio
        device_class: PRESENCE
        pin:
          number: GPIO2
          mode: INPUT_PULLUP
        name: mmwave_ld2410c_out
        filters:
          - delayed_off: 10ms
        # on_press:
        #   then:
        #     - light.turn_on: PIR_led_output_to
        # on_release:
        #   then:
        #     - light.turn_off: PIR_led_output_to

    sensor:
      - platform: ble_rssi
        ibeacon_uuid: 'a26fbca9-870e-4293-ad0b-aab3e0defc4e'
        name: "9045-RSSI"
        id: myphone_9045_ibeacon_rssi

      - platform: ble_rssi
        ibeacon_uuid: '8c592027-1d90-4acf-89e4-5C1644129fb5'
        name: "5763-RSSI"
        id: mywife_5763_ibeacon_rssi

      - platform: ble_rssi
        ibeacon_uuid: 'bc2db27c-48f4-4616-a171-82cdbcb4a6aa'
        name: "8655-RSSI"
        id: home_phone_8655_ibeacon_rssi
       
      # - platform: uptime
      #   name: Uptime Sensor    
    # sensor:
     
      - platform: uptime
        name: Uptime Sensor    

      - platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
        name: "WiFi Signal dB"
        id: wifi_signal_db
        update_interval: 60s
        entity_category: "diagnostic"

      - platform: copy # Reports the WiFi signal strength in %
        source_id: wifi_signal_db
        name: "WiFi Signal Percent"
        filters:
          - lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
        unit_of_measurement: "Signal %"
        entity_category: "diagnostic"
        device_class: ""


    output:
      - platform: ledc
        pin: GPIO4
        id: PIR_led_output
        inverted: true

    light:
      - platform: binary
        name: "PIR_to_LED"
        output: PIR_led_output
        id: PIR_led_output_to
        # 2024_0510_2221_53

    # light:
      # - platform: esp32_rmt_led_strip
      #   rgb_order: RBG
      #   pin: GPIO48
      #   num_leds: 3
      #   rmt_channel: 2
      #   chipset: ws2812
      #   name: "mmwave_My_Light"
      #   id: RGB_right_sw


    switch:
      - platform: restart
        name: "Restart Node"#
        id: restart_id
      - platform: ld2410
        # engineering_mode:
        #   name: "engineering mode"
        bluetooth:
          name: "HLKRadarTool yap control bluetooth"
          #  HLKRadarTool yap
    number:
      - platform: ld2410
        timeout:
          name: timeout
        light_threshold:
          name: light threshold
        max_move_distance_gate:
          name: max move distance gate
        max_still_distance_gate:
          name: max still distance gate
         
    button:
      - platform: ld2410
        factory_reset:
          name: "factory reset"
        restart:
          name: "restart"
        query_params:
          name: query params

    select:
      - platform: ld2410
        distance_resolution:
          name: "distance resolution"
        baud_rate:
          name: "baud rate"
        light_function:
          name: light function
        out_pin_level:
          name: out pin level

    text_sensor:
      - platform: ld2410
        version:
          name: "firmware version"
        mac_address:
          name: "mac address"


      - platform: wifi_info
        ip_address:
          name: Address
          id: ip
        ssid:
          name: SSID
        mac_address:
          name: Mac
    # 999999999999999999999999999999999999999999

    ☞ https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠1.png

    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    profile_image

    11qkr님의 댓글

    11qkr 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

    esphome:
      name: esp32-s3-8m-ble2-ip74-pin
      friendly_name: esp32_s3_8m_ble2_ip74_pin

    esp32:
      board: esp32-s3-devkitc-1
      framework:
        type: arduino
    # esp32-s3-8m-pin
    api:
      encryption:
        key: "oqKzqRlDdk3NGRwNeb508BRsASdqnz6sAc+Z+ANWvck="

    ota:
      password: "2b94a9cd8beed930f72808241e934b3f"

    wifi:
      ssid: !secret wifi_ssid
      password: !secret wifi_password
      power_save_mode: LIGHT 
      manual_ip:
        static_ip: 192.168.0.74
        gateway: 192.168.0.1
        subnet: 255.255.255.0
        dns1: 8.8.8.8
        dns2: 8.8.4.4
      ap:
        ssid: "Esp32-S3-Ld2410S"
        password: "EpEGixRy6fQH"


    captive_portal:
    # ===========================================  # esphome:
    # ESP32-S3
    # mmwave GPIO2
    # tx_pin: GPIO17
    # rx_pin: GPIO18
    # ===========================================  #

    # web_server:
    #  port: 80
    #  version: 2
    #  include_internal: true

    logger:
      level: ERROR
      baud_rate: 0
      # level: DEBUG 

    uart:
      tx_pin: GPIO17
      rx_pin: GPIO18
      baud_rate: 256000
      parity: NONE
      stop_bits: 1
     

    ld2410:
      id: my_ld2410



    bluetooth_proxy:
      active: false
      # active: true

    esp32_ble_tracker:
      id: entrance_ble_tracker 
      scan_parameters:  # 휴대폰 blu 인식 정보
        interval: 160ms  # 스캔 간격을 더 자주 스캔하도록 변경
        window: 160ms    # 스캔 창을 더 넓게 설정하여 더 많은 장치를 감지할 수 있도록 함
        active: true    # 활성 스캔 활성화
        duration: 30s

    # BLE송신기(transmitting)
    binary_sensor:
      - platform: ble_presence
        device_class: presence
        ibeacon_uuid: 'a26fbca9-870e-4293-ad0b-aab3e0defc4e'
        name: "9045-BLE"
        id: myphone_9045_ibeacon_presence
        timeout: 60s
        # a26fbca9-870e-4293-ad0b-aab3e0defc4e_100_40004  중에서 _100_40004 제외

      - platform: ble_presence
        device_class: presence
        ibeacon_uuid: '8c592027-1d90-4acf-89e4-5C1644129fb5'
        name: "5763-BLE"
        id: mywife_5763_ibeacon_presence
        timeout: 60s
        # 8c592027-1d90-4acf-89e4-5C1644129fb5_100_40004  중에서 _100_40004 제외

      - platform: ble_presence
        ibeacon_uuid: 'bc2db27c-48f4-4616-a171-82cdbcb4a6aa'
        name: "8655-BLE"
        id: home_phone_8655_ibeacon_presence
        timeout: 60s
        # bc2db27c-48f4-4616-a171-82cdbcb4a6aa_100_40004

    # binary_sensor:
      - platform: gpio
        device_class: PRESENCE
        pin:
          number: GPIO2
          mode: INPUT_PULLUP
        name: mmwave_ld2410c_out
        filters:
          - delayed_off: 10ms
        # on_press:
        #  then:
        #    - light.turn_on: PIR_led_output_to
        # on_release:
        #  then:
        #    - light.turn_off: PIR_led_output_to

    sensor:
      - platform: ble_rssi
        ibeacon_uuid: 'a26fbca9-870e-4293-ad0b-aab3e0defc4e'
        name: "9045-RSSI"
        id: myphone_9045_ibeacon_rssi

      - platform: ble_rssi
        ibeacon_uuid: '8c592027-1d90-4acf-89e4-5C1644129fb5'
        name: "5763-RSSI"
        id: mywife_5763_ibeacon_rssi

      - platform: ble_rssi
        ibeacon_uuid: 'bc2db27c-48f4-4616-a171-82cdbcb4a6aa'
        name: "8655-RSSI"
        id: home_phone_8655_ibeacon_rssi
       
      # - platform: uptime
      #  name: Uptime Sensor   
    # sensor:
     
      - platform: uptime
        name: Uptime Sensor   

      - platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
        name: "WiFi Signal dB"
        id: wifi_signal_db
        update_interval: 60s
        entity_category: "diagnostic"

      - platform: copy # Reports the WiFi signal strength in %
        source_id: wifi_signal_db
        name: "WiFi Signal Percent"
        filters:
          - lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
        unit_of_measurement: "Signal %"
        entity_category: "diagnostic"
        device_class: ""


    output:
      - platform: ledc
        pin: GPIO4
        id: PIR_led_output
        inverted: true

    light:
      - platform: binary
        name: "PIR_to_LED"
        output: PIR_led_output
        id: PIR_led_output_to
        # 2024_0510_2221_53

    # light:
      # - platform: esp32_rmt_led_strip
      #  rgb_order: RBG
      #  pin: GPIO48
      #  num_leds: 3
      #  rmt_channel: 2
      #  chipset: ws2812
      #  name: "mmwave_My_Light"
      #  id: RGB_right_sw


    switch:
      - platform: restart
        name: "Restart Node"#
        id: restart_id
      - platform: ld2410
        # engineering_mode:
        #  name: "engineering mode"
        bluetooth:
          name: "HLKRadarTool yap control bluetooth"
          #  HLKRadarTool yap
    number:
      - platform: ld2410
        timeout:
          name: timeout
        light_threshold:
          name: light threshold
        max_move_distance_gate:
          name: max move distance gate
        max_still_distance_gate:
          name: max still distance gate
         
    button:
      - platform: ld2410
        factory_reset:
          name: "factory reset"
        restart:
          name: "restart"
        query_params:
          name: query params

    select:
      - platform: ld2410
        distance_resolution:
          name: "distance resolution"
        baud_rate:
          name: "baud rate"
        light_function:
          name: light function
        out_pin_level:
          name: out pin level

    text_sensor:
      - platform: ld2410
        version:
          name: "firmware version"
        mac_address:
          name: "mac address"


      - platform: wifi_info
        ip_address:
          name: Address
          id: ip
        ssid:
          name: SSID
        mac_address:
          name: Mac
    # 999999999999999999999999999999999999999999

    답변
    profile_image

    11qkr님의 댓글

    11qkr 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

    https://esphome.io/components/light/esp32_rmt_led_strip.html#esp32-rmt-led-strip
    ESP32 RMT LED Strip
    This is a component using the ESP32 RMT peripheral to drive most addressable LED strips.

    light:
      - platform: esp32_rmt_led_strip
        rgb_order: GRB
        pin: GPIOXX
        num_leds: 30
        rmt_channel: 0
        chipset: ws2812
        name: "My Light"
    Configuration variables
    pin (Required, Pin): The pin for the data line of the light.

    num_leds (Required, int): The number of LEDs in the strip.

    rmt_channel (Required, int): The RMT channel to use. If using multiple strips, you need to use different channels.

    ESP32 Variant

    Channels

    ESP32

    0, 1, 2, 3, 4, 5, 6, 7

    ESP32-S2

    0, 1, 2, 3

    ESP32-S3

    0, 1, 2, 3

    ESP32-C3

    0, 1

    chipset (Required, enum): The chipset to apply known timings from. Not used if specifying the timings manually, see below.
    WS2812

    SK6812

    APA106

    SM16703

    rgb_order (Required, string): The RGB order of the strip.
    RGB

    RBG

    GRB

    GBR

    BGR

    BRG

    is_rgbw (Optional, boolean): Set to true if the strip is RGBW. Defaults to false.

    is_wrgb (Optional, boolean): Set to true if the strip is WRGB. Defaults to false.

    max_refresh_rate (Optional, Time): A time interval used to limit the number of commands a light can handle per second. For example 16ms will limit the light to a refresh rate of about 60Hz. Defaults to sending commands as quickly as changes are made to the lights.

    All other options from Light.

    Manual Timings
    These can be used if you know the timings and your chipset is not set above. If you have a new specific chipset, please consider adding support to the codebase and add it to the list above.

    bit0_high (Optional, Time): The time to hold the data line high for a 0 bit.

    bit0_low (Optional, Time): The time to hold the data line low for a 0 bit.

    bit1_high (Optional, Time): The time to hold the data line high for a 1 bit.

    bit1_low (Optional, Time): The time to hold the data line low for a 1 bit.

    See Also
    Light Component

    Power Supply Component

    API Reference

    Edit this page on GitHub

    답변

    새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-12-04 02:20:04

    오늘의 홈 현황


    • 현재 접속자♨ 463 명
    • 오늘 가입자※ 0 명
    • 어제 가입자※ 4 명
    • 주간 가입자※ 11 명
    • 오늘 방문자 1,572 명
    • 어제 방문자 4,368 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,850,040 명
    • 전체 게시물※ 8,868 개
    • 전체 댓글수※ 25,259 개
    • 전체 회원수 11,346 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑