Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #configuration.yaml
- # Configure a default setup of Home Assistant (frontend, api, etc)
- default_config:
- # Text to speech
- tts:
- - platform: google_translate
- mqtt:
- broker: #адрес брокера, скрыт
- discovery: true
- group: !include groups.yaml
- automation: !include automations.yaml
- script: !include scripts.yaml
- scene: !include scenes.yaml
- #Doc: The following example allows to have subfolders in the packages folder, which could make managing multiple packages easier by grouping:
- # убедитесь что будет заинклюжены конфиги из каталога packages
- homeassistant:
- packages: !include_dir_merge_named packages
- #рабочий пример с zont
- # файл packages/climate/climate.yaml
- climate_heating:
- sensor:
- - platform: rest
- resource: https://zont-online.ru/api/devices
- name: zont
- method: POST
- timeout: 30
- scan_interval: 10
- force_update: true
- headers:
- X-ZONT-Client: !secret x_zont_client
- X-ZONT-Token: !secret x_zont_token
- Content-Type: application/json
- payload: '{"load_io": true}'
- value_template: '{{ value_json.ok }}'
- json_attributes:
- - devices
- - platform: template
- sensors:
- zont_boiler_room:
- value_template: "{{ state_attr('sensor.zont','devices')[0].thermometers[0].last_value }}"
- device_class: temperature
- friendly_name: 'Мастерская'
- unit_of_measurement: '°C'
- - platform: template
- sensors:
- zont_outdoor:
- value_template: "{{ state_attr('sensor.zont','devices')[0].thermometers[1].last_value }}"
- device_class: temperature
- friendly_name: 'Улица'
- unit_of_measurement: '°C'
- - platform: template
- sensors:
- zont_heat_agent:
- value_template: "{{ state_attr('sensor.zont','devices')[0].thermometers[2].last_value }}"
- device_class: temperature
- friendly_name: 'Теплоноситель'
- unit_of_measurement: '°C'
Add Comment
Please, Sign In to add comment