Advertisement
3km

/config/configuration.yaml

3km
Dec 16th, 2019
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.53 KB | None | 0 0
  1.  
  2. # Configure a default setup of Home Assistant (frontend, api, etc)
  3. default_config:
  4. # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  5. # http:
  6. #   base_url: example.duckdns.org:8123
  7.  
  8. # Text to speech
  9. tts:
  10.   - platform: google_translate
  11.  
  12. # Discover some devices automatically
  13. discovery:
  14. homekit:
  15. group: !include groups.yaml
  16. automation: !include automations.yaml
  17. script: !include scripts.yaml
  18. scene: !include scenes.yaml
  19. #switch: !include switch.yaml
  20.  
  21.        
  22.  
  23. panel_iframe:
  24.   server_control:
  25.     title: server_control
  26.     icon: mdi:wifi-star
  27.     url: http://192.168.1.60:8123/config/server_control
  28.  
  29. telegram_bot:
  30.   - platform: polling
  31.     proxy_url: !secret telegram_proxy_url
  32.     proxy_params:
  33.       username: !secret telegram_proxy_username
  34.       password: !secret telegram_proxy_password
  35.     api_key: !secret telegram_bot_api_key
  36.     allowed_chat_ids:
  37.      - !secret telegram_bot_chat_id
  38.  
  39. notify:
  40.   - name: telegram
  41.     platform: telegram
  42.     chat_id: !secret telegram_bot_chat_id
  43.  
  44.  
  45. lovelace:
  46.     mode: yaml
  47.  
  48. sensor:
  49.   - platform: command_line
  50.     name: "pwm_brightness"
  51.     command: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=10&cmd=get'"
  52.     value_template: '{{ value | int }}'
  53.     scan_interval: 1
  54.  
  55.     shell_command:
  56.         send_http_pwm_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?cmd=10:255'"
  57.         send_http_pwm_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?cmd=10:0'"
  58.         send_http_pwm_level: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?cmd=10:{{ brightness }}'"
  59.  
  60. light:
  61.   - platform: template
  62.     lights:
  63.         pwm_lights:
  64.             friendly_name: "Light_PWM_bulb"
  65.             level_template: '{{ states("sensor.pwm_brightness") | int }}'
  66.             value_template: '{{ states("sensor.pwm_brightness") | int != 0 }}'
  67.             turn_on:
  68.                 service: 'shell_command.send_http_pwm_on'
  69.             turn_off:
  70.                 service: 'shell_command.send_http_pwm_off'
  71.             set_level:
  72.                 service: 'shell_command.send_http_pwm_level'
  73.             data_template:
  74.             brightness: "{{ brightness }}"
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. switch:
  83.   - platform: command_line
  84.     scan_interval: 1
  85.     switches:
  86.       light_p7:
  87.         friendly_name: P7 Зал Окно
  88.         command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=7&cmd=7:1'"
  89.         command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=7&cmd=7:0'"
  90.         command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=7&cmd=get'"
  91.         value_template: '{{ value == "ON" }}'
  92.       light_p8:
  93.         friendly_name: P8 Зал СП
  94.         command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=8&cmd=8:1'"
  95.         command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=8&cmd=8:0'"
  96.         command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=8&cmd=get'"
  97.         value_template: '{{ value == "ON" }}'
  98.       light_p9:
  99.         friendly_name: P9 Кухня Точечные
  100.         command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=9&cmd=9:1'"
  101.         command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=9&cmd=9:0'"
  102.         command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=9&cmd=get'"
  103.         value_template: '{{ value == "ON" }}'
  104.       light_p10:
  105.         friendly_name: P10 Кухня Основной
  106.         command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=10&cmd=10:1'"
  107.         command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=10&cmd=10:0'"
  108.         command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=10&cmd=get'"
  109.         value_template: '{{ value == "ON" }}'
  110.       light_p11:
  111.         friendly_name: P11 Туалет
  112.         command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=11&cmd=11:1'"
  113.         command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=11&cmd=11:0'"
  114.         command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=11&cmd=get'"
  115.         value_template: '{{ value == "ON" }}'
  116.       light_p12:
  117.         friendly_name: P12 Коридор рез
  118.         command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=12&cmd=12:1'"
  119.         command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=12&cmd=12:0'"
  120.         command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=12&cmd=get'"
  121.         value_template: '{{ value == "ON" }}'
  122.       light_p13:
  123.         friendly_name: P13 Коридор
  124.         command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=13&cmd=13:1'"
  125.         command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=13&cmd=13:0'"
  126.         command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=13&cmd=get'"
  127.         value_template: '{{ value == "ON" }}'
  128.       light_p29:
  129.         friendly_name: P29 Туалет вытяжка
  130.         command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=29&cmd=29:1'"
  131.         command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=29&cmd=29:0'"
  132.         command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=29&cmd=get'"
  133.         value_template: '{{ value == "ON" }}'
  134.       light_p28:
  135.         friendly_name: P28 Туалет вытяжка с регулировкой
  136.         command_on: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=28&&pwm=255'"
  137.         command_off: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=28&&pwm=0'"
  138.         command_state: "/usr/bin/curl -X GET 'http://192.168.1.14/sec/?pt=28&cmd=get'"
  139.         value_template: '{{ value == "255" }}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement