Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Configure a default setup of Home Assistant (frontend, api, etc)
- default_config:
- # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
- # http:
- # base_url: example.duckdns.org:8123
- # Text to speech
- tts:
- - platform: google_translate
- # Discover some devices automatically
- discovery:
- homekit:
- group: !include groups.yaml
- automation: !include automations.yaml
- script: !include scripts.yaml
- scene: !include scenes.yaml
- #switch: !include switch.yaml
- panel_iframe:
- server_control:
- title: server_control
- icon: mdi:wifi-star
- url: http://192.168.1.60:8123/config/server_control
- telegram_bot:
- - platform: polling
- proxy_url: !secret telegram_proxy_url
- proxy_params:
- username: !secret telegram_proxy_username
- password: !secret telegram_proxy_password
- api_key: !secret telegram_bot_api_key
- allowed_chat_ids:
- - !secret telegram_bot_chat_id
- notify:
- - name: telegram
- platform: telegram
- chat_id: !secret telegram_bot_chat_id
- lovelace:
- mode: yaml
- sensor:
- - platform: command_line
- name: "pwm_brightness"
- command: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=10&cmd=get'"
- value_template: '{{ value | int }}'
- scan_interval: 1
- shell_command:
- send_http_pwm_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?cmd=10:255'"
- send_http_pwm_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?cmd=10:0'"
- send_http_pwm_level: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?cmd=10:{{ brightness }}'"
- light:
- - platform: template
- lights:
- pwm_lights:
- friendly_name: "Light_PWM_bulb"
- level_template: '{{ states("sensor.pwm_brightness") | int }}'
- value_template: '{{ states("sensor.pwm_brightness") | int != 0 }}'
- turn_on:
- service: 'shell_command.send_http_pwm_on'
- turn_off:
- service: 'shell_command.send_http_pwm_off'
- set_level:
- service: 'shell_command.send_http_pwm_level'
- data_template:
- brightness: "{{ brightness }}"
- switch:
- - platform: command_line
- scan_interval: 1
- switches:
- light_p7:
- friendly_name: P7 Зал Окно
- command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=7&cmd=7:1'"
- command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=7&cmd=7:0'"
- command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=7&cmd=get'"
- value_template: '{{ value == "ON" }}'
- light_p8:
- friendly_name: P8 Зал СП
- command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=8&cmd=8:1'"
- command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=8&cmd=8:0'"
- command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=8&cmd=get'"
- value_template: '{{ value == "ON" }}'
- light_p9:
- friendly_name: P9 Кухня Точечные
- command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=9&cmd=9:1'"
- command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=9&cmd=9:0'"
- command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=9&cmd=get'"
- value_template: '{{ value == "ON" }}'
- light_p10:
- friendly_name: P10 Кухня Основной
- command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=10&cmd=10:1'"
- command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=10&cmd=10:0'"
- command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=10&cmd=get'"
- value_template: '{{ value == "ON" }}'
- light_p11:
- friendly_name: P11 Туалет
- command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=11&cmd=11:1'"
- command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=11&cmd=11:0'"
- command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=11&cmd=get'"
- value_template: '{{ value == "ON" }}'
- light_p12:
- friendly_name: P12 Коридор рез
- command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=12&cmd=12:1'"
- command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=12&cmd=12:0'"
- command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=12&cmd=get'"
- value_template: '{{ value == "ON" }}'
- light_p13:
- friendly_name: P13 Коридор
- command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=13&cmd=13:1'"
- command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=13&cmd=13:0'"
- command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=13&cmd=get'"
- value_template: '{{ value == "ON" }}'
- light_p29:
- friendly_name: P29 Туалет вытяжка
- command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=29&cmd=29:1'"
- command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=29&cmd=29:0'"
- command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=29&cmd=get'"
- value_template: '{{ value == "ON" }}'
- light_p28:
- friendly_name: P28 Туалет вытяжка с регулировкой
- command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=28&&pwm=255'"
- command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=28&&pwm=0'"
- command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=28&cmd=get'"
- value_template: '{{ value == "255" }}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement