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


● ha작업 ) weather 통합구성요소 센서 사용을 위한 웨더뉴스 Weathernews

♨ 카랜더 일정 : 2024년08월30일
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    ● ha작업 ) weather 통합구성요소 센서 사용을 위한 웨더뉴스 Weathernews

    3232235521_1725030326.7775.png

    지역 날씨 구성 > weathernews

    3232235521_1725030511.7491.png

    날씨구성

    https://www.kr-weathernews.com/mv4/html/today.html?loc=4111000000

    뒤자리 숫자

    3232235521_1725030487.8561.png


    3232235521_1725030461.9722.png

    활용방법 > 매시간 마다 날씨 을  nest-hub에 자동화 방송

    data:
      entity_id: media_player.nest_hub_seojae
      language: ko
      message: >-
        현제 시간은 {{ now().hour}} 시 {{ now().minute }} 분 입니다 .  오늘 날짜는 {{ now().year}}
        년 {{ now().month }}월 {{ now().day }} 일 입니다, 지금 날씨는 {{
        states.sensor.wn_home_weather_briefing.state }},  현재 온도은 {{
        states.sensor.wn_home_temperature.state }} 도 이고,  우리집 전기에너지 사용량은
        {{states.sensor.power_meter_2port_power_a_2.state}} 와트 입니다. 현제 시간은 {{
        now().hour}} 시 {{now().minute }} 분 입니다. 즐거운 시간 되세요. 저녁 9시 이후에서 아침 7시까지 방송입니다
    action: tts.google_say
    3232235521_1725031555.9275.png

    alias: 방송_9시이후_서재스피커_smartphone_weather_messeage
    description: 매시간 스마트폰으로 날짜 시간 날씨 메세지 전달
    trigger:
      - platform: time_pattern
        minutes: "0"
        seconds: "0"
    condition:
      - condition: time
        after: "21:01:00"
        before: "06:59:00"
    action:
      - delay:
          hours: 0
          minutes: 0
          seconds: 1
          milliseconds: 0
      - data:
          entity_id: media_player.nest_hub_seojae
          language: ko
          message: >-
            현제 시간은 {{ now().hour}} 시 {{ now().minute }} 분 입니다 .  오늘 날짜는 {{
            now().year}} 년 {{ now().month }}월 {{ now().day }} 일 입니다, 지금 날씨는 {{
            states.sensor.wn_home_weather_briefing.state }},  현재 온도은 {{
            states.sensor.wn_home_temperature.state }} 도 이고,  우리집 전기에너지 사용량은
            {{states.sensor.power_meter_2port_power_a_2.state}} 와트 입니다. 현제 시간은 {{
            now().hour}} 시 {{now().minute }} 분 입니다. 즐거운 시간 되세요. 저녁 9시 이후에서 아침 7시까지
            방송입니다
        action: tts.google_say
      - delay:
          hours: 0
          minutes: 1
          seconds: 0
          milliseconds: 0
    mode: single

    설치 정보

    https://github.com/dugurs/ha-weathernews



    웨더뉴스 Weathernews

    Home Assistant 커스텀 컴포넌트 for Weathernews

    weatherdotcom을 fork해 만들어졌습니다. weatherdotcom integration by @jaydeethree

    • kr-weathernews.com 날씨 데이타를 사용합니다. 날씨 데이타 저작권은 모두 Weathernews에 있습니다
    • 개인(본인 또는 그 동거 가족)이 사적 이용 목적에 한해 사용가능합니다!



    설치 구성요소

    아래의 최소 요구 사항을 충족해야 설치 가능합니다.

    • Home Assistant 버전 2023.9 이상이 필요합니다



    스크린샷

    날씨

    날씨 더 많은 정보

    센서

    6시간 동안 비가 올 것으로 예보됨

    선언하다

    날씨 비레핑

    맨 위로 돌아가기



    설치

    HACS를 사용해 설치 합니다.

    1. 통합구성요소 설치

      • Home Assistant 인스턴스를 열고 특정 저장소 URL이 미리 채워진 추가 기능 저장소 대화 상자를 표시합니다.

      • HACS > Integretions > 우측상단 메뉴 > Custom repositories 선택

        https://github.com/dugurs/ha-weathernews 주소 입력, Category에 'integration' 선택 후, 저장

        HACS > 통합 > 저장소 탐색 및 다운로드 > sesrch 웨더뉴스> 다운로드

    2. 통합구성요서 설정추가

      • Home Assistant 인스턴스를 열고 새로운 통합을 설정하세요.

      • 설정 > 기기 및 서비 > 통합구성요소 추가하기 > 웨더뉴스 WeatherNews

        https://www.kr-weathernews.com/ 접속 > 도시검색 > 도시 선택

        주소표시줄 ?region=XXXXXXXXXX의 XXXXXXXXXX 숫자를 "지역코드"에 넣기

    맨 위로 돌아가기



    생성되는 날씨 및 센서

    날씨 엔터티는 weather.wn_<LOCATION_NAME>과 같이 생성되고 매일, 매일2회, 매시 가 예보됩니다.

    날씨 엔터티 외에도 이러한 추가 센서가 생성됩니다:

    • sensor.wn_<LOCATION_NAME>_current_condition - 지금날씨
    • sensor.wn_<LOCATION_NAME>_day_condition - 오전날씨
    • sensor.wn_<LOCATION_NAME>_night_condition - 오후날씨
    • sensor.wn_<LOCATION_NAME>_relative_humidity - 습도
    • sensor.wn_<LOCATION_NAME>_temperature - 온도
    • sensor.wn_<LOCATION_NAME>_temperature_feels_like - 체감온도
    • sensor.wn_<LOCATION_NAME>_dewpoint - 이슬점
    • sensor.wn_<LOCATION_NAME>_heat_index - 열 지수
    • sensor.wn_<LOCATION_NAME>_pressure - 기압
    • sensor.wn_<LOCATION_NAME>_uv_index - 자외선 지수
    • sensor.wn_<LOCATION_NAME>_wind_direction_cardinal - 풍향
    • sensor.wn_<LOCATION_NAME>_wind_gust - 돌풍
    • sensor.wn_<LOCATION_NAME>_wind_speed - 풍속
    • sensor.wn_<LOCATION_NAME>_sunrise - 일출
    • sensor.wn_<LOCATION_NAME>_sunset - 일몰
    • sensor.wn_<LOCATION_NAME>_pm10 - 미세먼지
    • sensor.wn_<LOCATION_NAME>_pm10_description - 미세먼지 등급
    • sensor.wn_<LOCATION_NAME>_pm25 - 초미세먼지
    • sensor.wn_<LOCATION_NAME>_pm25_description - 초미세먼지 등급
    • sensor.wn_<LOCATION_NAME>_day_short_comment - 오늘 날씨 요약
    • sensor.wn_<LOCATION_NAME>_next_day_short_comment - 내일 날씨 요약
    • sensor.wn_<LOCATION_NAME>_temp_diff_comment - 어제와 기온차
    • sensor.wn_<LOCATION_NAME>_precipitation_probability - 강수확률
    • sensor.wn_<LOCATION_NAME>_cai - 통합대기등급
    • sensor.wn_<LOCATION_NAME>_weather_briefing - 날씨보고
    • sensor.wn_<LOCATION_NAME>_precip_hour_today - 오늘 비 예보
    • sensor.wn_<LOCATION_NAME>_precip_hour_today_tomarrow - 오늘내일 비 예보
    • sensor.wn_<LOCATION_NAME>_precip_3hour - 지금부터 3시간 비 예보
    • sensor.wn_<LOCATION_NAME>_precip_6hour - 지금부터 6시간 비 예보
    • sensor.wn_<LOCATION_NAME>_precip_9hour - 지금부터 9시간 비 예보
    • sensor.wn_<LOCATION_NAME>_precip_12hour - 지금부터 12시간 비 예보
    • 비 예보 공통 속성 (오늘, 오늘내일, 3시간, 6시간, 9시간, 12시간)
      • 'hour': '08', 시작시간
      • 'prec': 3, 시작시간의 강수량
      • 'pop': '80', 시작시간의 강수확률,
      • 'cmt': "13시 비", 요약
      • 'cmt2': '15시 까지 10mm', 요약2
      • 'hour_limit': 9, 예보기간
      • 'end_hour': '15', 첫 비 그치는 시간
      • 'end_sum_prec': 10, 첫 비 그치는 시간 까지 강수량
      • 'sum_prec': 12, 예보기간 동안의 총 강수량
      • 'max_pop': '80', 예보기간 중 최대 강수확률
      • 'snowrain': '비', 눈 비 구분
    • sensor.wn_<LOCATION_NAME>_pm_forcast - 미세먼지 예보(속성)

    갱신 주기는 20분 입니다. 미세먼지, 초미세먼지는 1시간 주기로 갱신됩니다.

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

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



    office view

    관련자료

    댓글목록

    등록된 댓글이 없습니다.


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


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-09-14 23:16:55

    오늘의 홈 현황


    • 현재 접속자♨ 376 명
    • 오늘 가입자※ 2 명
    • 어제 가입자※ 1 명
    • 주간 가입자※ 8 명
    • 오늘 방문자 2,275 명
    • 어제 방문자 2,030 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,556,555 명
    • 전체 게시물※ 8,792 개
    • 전체 댓글수※ 25,090 개
    • 전체 회원수 11,233 명

    QR코드


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

    알림 0








    최신글↑