Is this correct as notifiers sintax?
in addition I receive this error
17-02-12 10:54:58 ERROR (Thread-1) [homeassistant.util.yaml] while parsing a block mapping
in “/home/hass/.homeassistant/configuration.yaml”, line 1412, column 9
expected , but found ‘’
in “/home/hass/.homeassistant/configuration.yaml”, line 1413, column 31
binary_sensor alert:
- platform: template
sensors:
temperature_low:
value_template: '{{ states.climate.anna_thermo.attributes.temperature < 18 }}'
friendly_name: 'Anna'stemperature is low'
alert:
temperature_low:
- name: Temperature is Low
entity_id: binary_sensor.temperature_low
repeat:
- 15
- 30
- 60
notifiers: notify.push_html5
sebk-666
(Sebastian)
February 12, 2017, 10:26am
2
There is your problem. You need to escape the single quote in “Anna's
”.
I think it should be:
friendly_name: 'Anna''stemperature is low'
i.e two single quotes instead of one.
Sebastian
Or use doble quotes:
"Anna'stemperature is low"
anon35356645:
platform: template
sensors:
temperature_low:
value_template: '{{ states.climate.anna_thermo.attributes.temperature
got it the ’ error.
Other thing
is it states.climate …
or
sensors.climate…
?
sebk-666
(Sebastian)
February 12, 2017, 11:03am
6
Try it like this, without the dash (-
):
alert:
temperature_low:
name: Temperature is Low
also, remove the “alert
” from this line:
binary_sensor alert:
Sebastian
sebk-666:
binary_sensor alert:
Sebastian
I have many binary_sensor need to differentiate it
trying now without the -
sebk-666
(Sebastian)
February 12, 2017, 11:12am
8
Then it would be:
binary_sensor:
- platform: template
name: 'alert'
...
Sebastian
how to use multiple alerts?
alert 1:
alert 2:
or
alert:
- name_of_first alert
...
- name_of_second_alert
?
anon35356645:
alert 1:
alert 2:
this also is giving problems
17-02-12 12:30:15 ERROR (MainThread) [homeassistant.bootstrap] Error during setup of component alert
Traceback (most recent call last):
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py”, line 149, in _async_setup_component
result = yield from component.async_setup(hass, config)
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/alert.py”, line 121, in async_setup
for entity_id, alert in alerts.items():
AttributeError: ‘NoneType’ object has no attribute ‘items’
sebk-666
(Sebastian)
February 12, 2017, 11:41am
13
I had to go back to .37.1 temporarily, so I can’t test.
It should be like:
alert:
- first_alert:
name: One
entity_id: abc
...
- second_alert:
name: Two
entity_id: xyz
...
Sebastian
tried that, it did not go.
Revert to have one alert only … and wait
sometimes I think is all crap … temperature went down and notify did not notify, and I don’t know why in the hell is that
17-02-12 18:11:55 WARNING (MainThread) [homeassistant.core] Unable to find service notify/notify.push_html5
Tinkerer
(aka DubhAd on GitHub)
February 12, 2017, 5:20pm
16
The example documentation doesn’t use the notify.
prefix. Have you tried just notifiers: push_html5
?
will try that.
Could be that I have an automation and this alert, triggered by the same event, and both the same notify.push_html5?
Because both failed: automation and alert.
Now I changed automation to pushbullet, and alert to your suggestion
if they would ask me 2 words to describe home assistant I would use: cool and unreliable
Tinkerer
(aka DubhAd on GitHub)
February 12, 2017, 6:40pm
19
It’s not yet at version 1, and you’re using a feature that’s only just been released, of course you can expect some rough edges.
That said, I’ve never found it unreliable. Tricky to get working, sometimes
Now, the alerts work perfectly for me, here’s my notification and alert settings, both in separate files using includes:
# Notifications via Pushover
- name: pushover
platform: pushover
api_key: API_KEY
user_key: USER_KEY
And then the alert:
garage_door:
name: Garage is open
entity_id: binary_sensor.garage_sensor_12_0
state: 'on'
repeat: 10
can_acknowledge: True
skip_first: True
notifiers:
- pushover
Maybe if you posted your automations and alerts, correctly formatted, somebody might be able to help you.
will try, which indentation?