코딩정보


새창 작성 수정 목록 링크 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

    답변

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


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-06-18 22:17:17

    오늘의 홈 현황


    • 현재 접속자♨ 584 명
    • 오늘 가입자※ 5 명
    • 어제 가입자※ 4 명
    • 주간 가입자※ 21 명
    • 오늘 방문자 1,802 명
    • 어제 방문자 1,772 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,385,214 명
    • 전체 게시물※ 8,644 개
    • 전체 댓글수※ 24,752 개
    • 전체 회원수 11,060 명

    QR코드


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

    알림 0








    최신글↑