코딩게시판

자동차 위치추적 carlinkitplus 설정 > home assistant >앱설정

작성자 정보

  • 최고관리자 작성
  • 192.♡.0.1 아이피
  • 작성일

컨텐츠 정보


  • 링크

  • 첨부


  • 본문

    휴대폰 위치추적 사례

    3232235521_1762911883.1679.png

    자동차 위치추적  carlinkitplus 설정 > home assistant >앱설정

    1) 유심칩 장착 >  home assistant  을 구글스토어에서 설치

    2) pc에서 home asststant  유저등록 및 암호 등록

    3232235521_1762873596.4025.png


    차량의 home assistant >앱설정

    3232235521_1762873227.1937.png

    자동차 위치추적  carlinkitplus 설정 > home assistant >앱설정

    > 높은 정확도 모드,백그라운드 위치, 위치지역 , 정확한 단일 위치,정확한 단일 위치,정확안 위치 업데이트 간격,,,,활성화

    3232235521_1762873122.6747.png

    자동차 위치추적  carlinkitplus 설정 > home assistant >앱설정

    > 높은 정확도 모드,백그라운드 위치, 위치지역 , 정확한 단일 위치,정확한 단일 위치,정확안 위치 업데이트 간격,,,,활성화

    > 지오코딩 위치,,,,활성화

    3232235521_1762873134.1277.png


    2) pc에서 home asststant  에서 트래커 등록 및 맵 설정 하기


    3232235521_1762873899.7235.png


    type: custom:map-card
    zoom: 20
    card_size: 10
    tile_layer_attribution: 날씨예보 ☞
    tile_layers:
      - url: https://tile.openstreetmap.org/{z}/{x}/{y}.png
        options:
          attribution: >-
            <a href="https://www.weather.go.kr/" target="_blank">기상청</a>,<a
            href="https://weather.naver.com/" target="_blank">네이버날씨</a>,<a
            href="https://nathan.gs/2024/01/06/ha-map-card-a-new-and-alternative-leaflet-based-map/"
            target="_blank">정보</a>
    history_start: 172 hours ago
    entities:

        display: icon
        size: 40

        name: Device 1
        color: green
        gradual_opacity: 0.7



    3232235521_1762874016.5243.png

    pc에서

    3232235521_1762909809.7284.png

    3232235521_1762909838.7085.png


    차량아이콘 변경

    3232235521_1762910549.0085.png




    차량아이콘 칼라변경

    s:wwwimagescar.png

    아이콘 준비

    3232235521_1762911111.981.png



    # /config/customize.yaml  그림사진 아이콘 변경을 위한 추가  #
    #   차량 아이콘 변경 2025_1112_1005_10
    # device_tracker.k78436:
    device_tracker.k78436:
      entity_picture: /local/images/car660.pngpng
    3232235521_1762911028.8903.png
    3232235521_1762910949.7872.png

    차량 정보 일괄 변경( 기기 변경시)


    3232235521_1762910362.562.png


    차량이동시 tts 방송


    - id: "1732525294818"
      alias: car gps change 차량 이동 100m 이상 시 방송
      description: device_tracker.car6125 위치가 100m 이상 변하면 방송하고, 위치 갱신
      triggers:
        - entity_id: device_tracker.car6125
          trigger: state
      conditions: []
      actions:
        - variables:
            lat_new: "{{ state_attr('device_tracker.car6125', 'latitude') | float(0)
              }}"
            lon_new:
              "{{ state_attr('device_tracker.car6125', 'longitude') | float(0)
              }}"
            lat_old: "{{ states('input_number.car_previous_latitude') | float(0) }}"
            lon_old: "{{ states('input_number.car_previous_longitude') | float(0) }}"
        - variables:
            distance:
              "{{ ( (lat_new - lat_old)**2 + (lon_new - lon_old)**2 )**0.5 * 111000
              }}"
        - if:
            - condition: numeric_state
              entity_id: sensor.vehicle_moving_status
              above: 0
            - condition: template
              value_template: "{{ distance > 100 }}"
          then:
            - data:
                cache: false
                entity_id: media_player.speaker_pcm5102
                message: 차량이 100미터 이상 이동하였습니다.
              action: tts.edge_tts_say
            - target:
                entity_id: input_number.car_previous_latitude
              data:
                value: "{{ lat_new }}"
              action: input_number.set_value
            - target:
                entity_id: input_number.car_previous_longitude
              data:
                value: "{{ lon_new }}"
              action: input_number.set_value
            - delay:
                minutes: 10
      mode: single



    첨부 파일을 스킨보드에 구성 PDF보기( W:\g5\skin\board\BS4-Basic-Webzine_11q_pdf_php82\view.skin.php + view_pdf.php구성)



    관련자료

    댓글 0
    등록된 댓글이 없습니다.

    최근글


    새댓글