Size: a a a

2020 December 04

SF

Serge Filzner in Home Assistant
Никто не делал бинарный сенсор с изменением атрибута friendly_name в зависимости от статуса? Сделал темплейт,
attribute_templates:      friendly_name: >- {% if ... - просто ничего не меняет, а friendly_name_template: >- - ошибка... [friendly_name_template] is an invalid option for [binary_sensor.template].
источник

SF

Serge Filzner in Home Assistant
Самое интересное, что attribute_templates:      xxx_attr: >- {% if.. создает атрибут xxx_attr. Кроме , конечно же, friendly_name (когда friendly_name был вместо xxx_attr)
источник

A

Alex in Home Assistant
Добрый вечер! Подскажите, пожалуйста, что не так? Делал через конфигуратор автоматизаций
- alias: leaving_home_lights
 trigger:
 - platform: state
   entity_id: switch.zont_guard
   from: off
   to: on
 condition: []
 action:
 - delay: '00:01:00'
 - type: turn_off
   device_id: 725a81f013c211eb9858517e26d1c584
   entity_id: switch.bbq_light_switch_l1
   domain: switch
Ругается вот так:
Invalid config for [automation]: [type] is an invalid option for [automation]. Check: automation->action->0->type.
источник

IB

Ivan Bessarabov in Home Assistant
from: off
to: on
источник

IB

Ivan Bessarabov in Home Assistant
это всегда должно быть в кавычках
источник

IB

Ivan Bessarabov in Home Assistant
from: 'off'
to: 'on'
источник

O

Omh in Home Assistant
Но матерится-то на type
Кмк, там всегда раньше был service:
Но может я уже и не секу за новым синтаксисом
источник

VO

V O in Home Assistant
Народ,интеграция GW3 у всех норм работает?  За сутки второй раз гейт отвалился ...
источник

IB

Ivan Bessarabov in Home Assistant
Alex
Добрый вечер! Подскажите, пожалуйста, что не так? Делал через конфигуратор автоматизаций
- alias: leaving_home_lights
 trigger:
 - platform: state
   entity_id: switch.zont_guard
   from: off
   to: on
 condition: []
 action:
 - delay: '00:01:00'
 - type: turn_off
   device_id: 725a81f013c211eb9858517e26d1c584
   entity_id: switch.bbq_light_switch_l1
   domain: switch
Ругается вот так:
Invalid config for [automation]: [type] is an invalid option for [automation]. Check: automation->action->0->type.
- type: turn_off
   device_id: 725a81f013c211eb9858517e26d1c584
   entity_id: switch.bbq_light_switch_l1
   domain: switch


в качестве action это выгляит очень странно.
источник

A

Alex in Home Assistant
Ivan Bessarabov
from: 'off'
to: 'on'
Счас попробую добавить кавычки
источник

A

Alex in Home Assistant
Ivan Bessarabov
- type: turn_off
   device_id: 725a81f013c211eb9858517e26d1c584
   entity_id: switch.bbq_light_switch_l1
   domain: switch


в качестве action это выгляит очень странно.
Так конфигуратор сделал. У меня в других автоматизациях так же оно и работает
источник

𝔹

𝔹𝕖𝕝𝕚𝕪 in Home Assistant
Ivan Bessarabov
- type: turn_off
   device_id: 725a81f013c211eb9858517e26d1c584
   entity_id: switch.bbq_light_switch_l1
   domain: switch


в качестве action это выгляит очень странно.
Гуя зло)
источник

IB

Ivan Bessarabov in Home Assistant
Alex
Так конфигуратор сделал. У меня в других автоматизациях так же оно и работает
можешь показать другую автоматизацию в которой нечто подобное работает?
источник

A

Alex in Home Assistant
Сделал так:
- alias: leaving_home_lights
 trigger:
 - platform: state
   entity_id: switch.zont_guard
   from: 'off'
   to: 'on'
 action:
 - delay: '00:01:00'
 - type: turn_off
   entity_id: switch.bbq_light_switch_l1
   domain: switch
Ругается теперь вот так:
Invalid config for [automation]: [type] is an invalid option for [automation]. Check: automation->action->0->type. (See /config/configuration.yaml, line 48).
Invalid config for [automation]: [type] is an invalid option for [automation]. Check: automation->action->1->type. (See /config/configuration.yaml, line 48).
источник

AS

Andrey S. in Home Assistant
Alex
Добрый вечер! Подскажите, пожалуйста, что не так? Делал через конфигуратор автоматизаций
- alias: leaving_home_lights
 trigger:
 - platform: state
   entity_id: switch.zont_guard
   from: off
   to: on
 condition: []
 action:
 - delay: '00:01:00'
 - type: turn_off
   device_id: 725a81f013c211eb9858517e26d1c584
   entity_id: switch.bbq_light_switch_l1
   domain: switch
Ругается вот так:
Invalid config for [automation]: [type] is an invalid option for [automation]. Check: automation->action->0->type.
Бля, ты можешь в экшене смену стейта поставить, а не эту хренть
источник

A

Alex in Home Assistant
Могу. Так и было изначально и ругалось
источник

A

Alex in Home Assistant
Счас попробую
источник

AS

Andrey S. in Home Assistant
Alex
Могу. Так и было изначально и ругалось
Точнее, вызов службы, меняющей стейт на офф или что тебе нужно там
источник

A

Alex in Home Assistant
Вот такая работает тоже из гуи сделана:
- alias: night_light_off
 trigger:
 - type: illuminance
   platform: device
   device_id: 2c5bc07813c311eb8a15e5b453bb0929
   entity_id: sensor.light_sensor_illuminance_lux
   domain: sensor
   above: 30
 action:
 - type: turn_off
   device_id: 725a81f013c211eb9858517e26d1c584
   entity_id: switch.bbq_light_switch_l1
   domain: switch
 - type: turn_off
   device_id: 4ea2264e13bc11eb8d0937e51d3e0b13
   entity_id: switch.entry_light_switch_left
   domain: switch
 - type: turn_off
   device_id: c8cde12713ba11eba315aba8a285b82c
   entity_id: switch.roof_light_switch
   domain: switch
 - type: turn_off
   device_id: 320fb14e13c011ebbd75c16b1379ba81
   entity_id: switch.street_light_switch
   domain: switch
 - type: turn_off
   device_id: 11e5c40b13b911eb89dd775e7b5c5965
   entity_id: switch.veranda_light_switch_right
   domain: switch
источник

AS

Andrey S. in Home Assistant
Мама дорогая
источник