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


●HA작업] Home Assistant 기본파일 configuration.yaml scripts.yaml switches.yaml저장

♨ 카랜더 일정 : 2023년04월03일
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    ●HA작업] Home Assistant 기본파일 configuration.yaml scripts.yaml  switches.yaml저장


    월패드에 ew11의 현대 월패드 조명및 보일러 메뉴 저장 합니다

    다음3개 파일을 월패드에 ew11 485 연결하여 패킷 추출하여

    전등 보일러 스위치를 구성 했습니다


    # file name : configuration.yaml

    # file name : scripts.yaml

    # file name : switches.yaml



    3232235521_1680524439.5403.png

    ################  파일 구분 #################

    # file name : configuration.yaml
    # Loads default set of in:tegrations. Do not remove.
    default_config:

    # Load frontend themes from the themes folder
    frontend:
      themes: !include_dir_merge_named themes

    # Text to speech
    tts:
      - platform: google_translate

    automation: !include automations.yaml
    script: !include scripts.yaml
    scene: !include scenes.yaml

    # revers proxi 20230327
    # /config/configuration.yaml
    http:
      use_x_forwarded_for: true
      trusted_proxies:
        - 192.168.0.0
        - 192.168.0.3
        - 192.168.0.7
        - 127.0.0.1
        - 255.255.255.0/24
      ip_ban_enabled: true
      login_attempts_threshold: 5

    # homeassistant url setting
    homeassistant:
      external_url: "https://ha.11q.kr/"
      internal_url: "http://192.168.0.3:8123"

    # ----------------------------------------------------------------
    # 마지막에 추가
    # script: !include scripts.yaml
    switch: !include switches.yaml

    light:
      - platform: template
        lights:
          light_living_light_1:
            friendly_name: "거실 불"
            turn_on:
              service: script.living_light_1
            turn_off:
              service: script.living_light_1_off

          light_living_light_2:
            friendly_name: "거실2 불"
            turn_on:
              service: script.living_light_2
            turn_off:
              service: script.living_light_2_off

          light_living_light_3:
            friendly_name: "뒷 불"
            turn_on:
              service: script.living_light_3
            turn_off:
              service: script.living_light_3_off

          light_living_light_4:
            friendly_name: "앞 불"
            turn_on:
              service: script.living_light_4
            turn_off:
              service: script.living_light_4_off

          light_living_light_5:
            friendly_name: "복도 불"
            turn_on:
              service: script.living_light_5
            turn_off:
              service: script.living_light_5_off
          # ==============================
          # ---------------------------- 보일러
          living_heating_1:
            friendly_name: "거실 보일러"
            turn_on:
              service: script.living_heating_1
            turn_off:
              service: script.living_heating_1_off
          # -----------------------------
          living_heating_2:
            friendly_name: "안방 보일러"
            turn_on:
              service: script.living_heating_2
            turn_off:
              service: script.living_heating_2_off
          # -----------------------------
          living_heating_3:
            friendly_name: "작은방 보일러"
            turn_on:
              service: script.living_heating_3
            turn_off:
              service: script.living_heating_3_off
          # -----------------------------
          living_heating_4:
            friendly_name: "서재 보일러"
            turn_on:
              service: script.living_heating_4
            turn_off:
              service: script.living_heating_4_off
    # -----------------------------
    # 20230328
    # homeassistant-71038
    # quantum-engine-307706-e0518847dbae.json
    # quantum-engine-307706-c3c143feb06c.json
    google_assistant:
      project_id: homeassistant-71038
      service_account: !include quantum-engine-307706-e0518847dbae.json
      report_state: true
    # automation: !include automations.yaml

    # ==============================
    #
    # script: !include scripts.yaml
    # scene: !include scenes.yaml
    # ===========================================================
    panel_custom:
      - name: ha_server_con
        sidebar_title: 서버제어
        sidebar_icon: mdi:cog-transfer
        js_url: /api/hassio/app/entrypoint.js
        url_path: "developer-tools/yaml"
        embed_iframe: true
        require_admin: true
        config:
          ingress: core_configurator
      - name: ha_integ
        sidebar_title: 통합구성요소
        sidebar_icon: mdi:chip
        js_url: /api/hassio/app/entrypoint.js
        url_path: "config/integrations"
        embed_iframe: true
        require_admin: true
        config:
          ingress: core_configurator
      - name: ha_auto
        sidebar_title: 자동화
        sidebar_icon: mdi:cog-outline
        js_url: /api/hassio/app/entrypoint.js
        url_path: "config/automation"
        embed_iframe: true
        require_admin: true
        config:
          ingress: core_configurator
      - name: ha_log
        sidebar_title: 서버로그
        sidebar_icon: mdi:math-log
        js_url: /api/hassio/app/entrypoint.js
        url_path: "config/logs"
        embed_iframe: true
        require_admin: true
        config:
          ingress: core_configurator

      - name: ha_supervisor
        sidebar_title: 애드온
        sidebar_icon: mdi:home-assistant
        js_url: /api/hassio/app/entrypoint.js
        url_path: "hassio/dashboard"
        embed_iframe: true
        require_admin: true
        config:
          ingress: core_configurator

          # [출처] 2021.05 버전 이후 Supervisor, 통합구성요소, 서버제어 등 바로가기 만들기 (HomeAssistant) | 작성자 랜이


    ###############################################
    ################  파일 구분 #################
    #  file name : scripts.yaml
    # 11111111111111111111111
    living_light_1:
      alias: living_light_1
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.living_light_1
              - delay: "0.5"
      mode: single

    living_light_1_off:
      alias: living_light_1
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_off
                data: {}
                entity_id: switch.living_light_1
              - delay: "0.5"
      mode: single
    # 22222222222222222222222
    living_light_2:
      alias: living_light_2
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.living_light_2
              - delay: "0.5"
      mode: single

    living_light_2_off:
      alias: living_light_2
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_off
                data: {}
                entity_id: switch.living_light_2
              - delay: "0.5"
      mode: single
    # 333333333333333333333333333
    living_light_3:
      alias: living_light_3
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.living_light_3
              - delay: "0.5"
      mode: single

    living_light_3_off:
      alias: living_light_3
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_off
                data: {}
                entity_id: switch.living_light_3
              - delay: "0.5"
      mode: single

    # 44444444444444444

    living_light_4:
      alias: living_light_4
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.living_light_4
              - delay: "0.5"
      mode: single

    living_light_4_off:
      alias: living_light_4
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_off
                data: {}
                entity_id: switch.living_light_4
              - delay: "0.5"
      mode: single
    # 555555555555555555555555

    living_light_5:
      alias: living_light_5
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.living_light_5
              - delay: "0.5"
      mode: single

    living_light_5_off:
      alias: living_light_5
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_off
                data: {}
                entity_id: switch.living_light_5
              - delay: "0.5"
      mode: single

    # ----------------------------  보일러 추가 ---------------

    living_heating_1:
      alias: living_heating_1
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.living_heating_1
              - delay: "0.5"
      mode: single

    living_heating_1_off:
      alias: living_heating_1
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_off
                data: {}
                entity_id: switch.living_heating_1
              - delay: "0.5"
      mode: single
    # ----------------------
    living_heating_2:
      alias: living_heating_2
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.living_heating_2
              - delay: "0.5"
      mode: single

    living_heating_2_off:
      alias: living_heating_2
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_off
                data: {}
                entity_id: switch.living_heating_2
              - delay: "0.5"
      mode: single
    # ----------------------------
    living_heating_3:
      alias: living_heating_3
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.living_heating_3
              - delay: "0.5"
      mode: single

    living_heating_3_off:
      alias: living_heating_3
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_off
                data: {}
                entity_id: switch.living_heating_3
              - delay: "0.5"
      mode: single
    # ----------------------------
    living_heating_4:
      alias: living_heating_4
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.living_heating_4
              - delay: "0.5"
      mode: single

    living_heating_4_off:
      alias: living_heating_4
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_off
                data: {}
                entity_id: switch.living_heating_4
              - delay: "0.5"
      mode: single
    # -------------------------------
    elevator_call:
      alias: elevator_call
      sequence:
        - repeat:
            count: "10"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.elevator_cmd
              - delay: "0.25"
      mode: single
    ##############################################
    ################  파일 구분 #################
    # ============================
    #  file name : switches.yaml
    - platform: command_line
      switches:
        living_light_1:
          command_on: echo -e "\xF7\x0B\x01\x19\x02\x40\x11\x01\x00\xB6\xEE" | nc 192.168.0.11 8899
          command_off: echo -e "\xF7\x0B\x01\x19\x02\x40\x11\x02\x00\xB5\xEE" | nc 192.168.0.11 8899
        living_light_2:
          command_on: echo -e "\xF7\x0B\x01\x19\x02\x40\x12\x01\x00\xB5\xEE" | nc 192.168.0.11 8899
          command_off: echo -e "\xF7\x0B\x01\x19\x02\x40\x12\x02\x00\xB6\xEE" | nc 192.168.0.11 8899
        living_light_3:
          command_on: echo -e "\xF7\x0B\x01\x19\x02\x40\x13\x01\x00\xB4\xEE" | nc 192.168.0.11 8899
          command_off: echo -e "\xF7\x0B\x01\x19\x02\x40\x13\x02\x00\xB7\xEE" | nc 192.168.0.11 8899
        living_light_4:
          command_on: echo -e "\xF7\x0B\x01\x19\x02\x40\x14\x01\x00\xB3\xEE" | nc 192.168.0.11 8899
          command_off: echo -e "\xF7\x0B\x01\x19\x02\x40\x14\x02\x00\xB0\xEE" | nc 192.168.0.11 8899
        living_light_5:
          command_on: echo -e "\xF7\x0B\x01\x19\x02\x40\x15\x01\x00\xB2\xEE" | nc 192.168.0.11 8899
          command_off: echo -e "\xF7\x0B\x01\x19\x02\x40\x15\x02\x00\xB1\xEE" | nc 192.168.0.11 8899

        living_heating_1:
          command_on: echo -e "\xF7\x0B\x01\x18\x02\x46\x11\x01\x00\xB1\xEE" | nc 192.168.0.11 8899
          command_off: echo -e "\xF7\x0B\x01\x18\x02\x46\x11\x04\x00\xB4\xEE" | nc 192.168.0.11 8899
        living_heating_2:
          command_on: echo -e "\xF7\x0B\x01\x18\x02\x46\x12\x01\x00\xB2\xEE" | nc 192.168.0.11 8899
          command_off: echo -e "\xF7\x0B\x01\x18\x02\x46\x12\x04\x00\xB7\xEE" | nc 192.168.0.11 8899
        living_heating_3:
          command_on: echo -e "\xF7\x0B\x01\x18\x02\x46\x13\x01\x00\xB3\xEE" | nc 192.168.0.11 8899
          command_off: echo -e "\xF7\x0B\x01\x18\x02\x46\x13\x04\x00\xB6\xEE" | nc 192.168.0.11 8899
        living_heating_4:
          command_on: echo -e "\xF7\x0B\x01\x18\x02\x46\x14\x01\x00\xB4\xEE" | nc 192.168.0.11 8899
          command_off: echo -e "\xF7\x0B\x01\x18\x02\x46\x14\x04\x00\xB1\xEE" | nc 192.168.0.11 8899

        elevator_cmd:
          command_on: echo -e "\xF7\x0B\x01\x34\x04\x41\x10\x00\x06\x9A\xEE" | nc 192.168.0.11 8899
        elevator:
          friendly_name: 엘리베이터 호출
          command_on: script.elevator_call
    # switches.yaml
    # 생성하여 붙여넣기하세요
    # 다음 명령은 2칸이후 작성하세요
    ==============================
    ################  파일 구분 #################


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

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



    office view

    관련자료

    댓글목록

    profile_image

    y님의 댓글

    y 이름으로 검색 아이피 (39.♡.108.178) 작성일

    너무너무 감사합니다 초보라서 어렵네요

    답변 삭제
    profile_image

    11qkr님의 댓글

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

    # ================== 파일 추가 1
    # 88888888888888888888888888888888
    # 20240105_1551_30
    # wall-pad ew11 간단 구성
    # /config/configuration.yaml 에 아래 추가
    # 패킷 구성 1 switches
    command_line: !include command_line.yaml
    light: !include ew11_light.yaml
    script: !include scripts.yaml
    # 888888888888888888888888888888888888
    # ================== 파일 추가 2
    #  /config/command_line.yaml 에 추가
    # command_line: !include command_line.yaml
    # light: !include ew11_light.yaml
    # script: !include scripts.yaml
    #  999999999999999999999
    # command_line:
    #  전등 부분
    - switch:
        name: living_light_1 # 거실불
        command_on: echo -e "\xF7\x0B\x01\x19\x02\x40\x11\x01\x00\xB6\xEE" | nc 192.168.0.16 8899
        command_off: echo -e "\xF7\x0B\x01\x19\x02\x40\x11\x02\x00\xB5\xEE" | nc 192.168.0.16 8899
        command_state: echo -e "\xF7\x0B\x01\x18\x02\x40\x11\x00\x00\x00\xEE" | nc 192.168.0.16 8899
    #

    # ================== 파일 추가 3
    # /config/ew11_light.yaml 파일 추가 내용
    # command_line: !include command_line.yaml
    # light: !include ew11_light.yaml
    # script: !include scripts.yaml
    # 9999999999999999999999999999999999
    - platform: template
      lights:
        light_living_light_1:
          friendly_name: "거실 불"
          turn_on:
            service: script.living_light_1
          turn_off:
            service: script.living_light_1_off
    # ================== 파일 추가 4
    # ew11 구성 scripts 파일
    # /config/ew11_light.yaml 추가 내용
    # command_line: !include command_line.yaml
    # light: !include ew11_light.yaml
    # script: !include scripts.yaml
    #  999999999999999999999999999
    #
    living_light_1:
      alias: living_light_1
      sequence:
        - repeat:
            count: "2"
            sequence:
              - service: switch.turn_on
                data: {}
                entity_id: switch.living_light_1
              - delay: "0.5"
      mode: single

    답변

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


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-11-23 14:04:59

    오늘의 홈 현황


    • 현재 접속자♨ 360 명
    • 오늘 가입자※ 1 명
    • 어제 가입자※ 3 명
    • 주간 가입자※ 9 명
    • 오늘 방문자 2,467 명
    • 어제 방문자 3,461 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,805,084 명
    • 전체 게시물※ 8,856 개
    • 전체 댓글수※ 25,232 개
    • 전체 회원수 11,326 명

    QR코드


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

    알림 0








    최신글↑