Hi guys,
I managed to write down a notifier component for Zanzito.
Before sending a PR for it to be officially included in HA, I would like to be sure I got it right in terms of functionality.
I hope some of you are willing to test it in their environments and report back.
Please, understand this is not an official HA platform yet, there are still a couple of technical things that need to be discussed with HA boss(es).
You can download the component file zanzito.py
from [here] (http://www.barbaro.it/cms/images/android/zanzito.py) (right-click to save the file).
It needs to be copied into your HA notifier custom components directory (within your configuration directory).
The path would be:
<path-to-ha-config-dir>/custom_components/notify/
To setup the component, add to your configuration.yaml
something like:
notify:
- name: My device
platform: zanzito
device-name: my_device_name
my_device_name
is the name you put in your Zanzito’s preferences. You can call the notification service in the action:
part of your automations.
To send a text notification:
- service: notify.my_device
data:
message: 'Message body'
title: 'Message title'
To send a TTS notification:
- service: notify.my_device
data:
message: 'Message body'
data:
say:
To trigger an alarm:
- service: notify.my_device
data:
message: 'Wake up!'
data:
alarm: 'on'
To stop an ongoing alarm:
- service: notify.my_device
data:
message: ''
data:
alarm: 'off'
To send an SMS:
- service: notify.my_device
data:
message: 'This is an SMS msg!'
data:
sms: '<dest-phone-number>'
To send an image from local file:
- service: notify.my_device
data:
message: ''
data:
photo:
- file: '<path-to-your-local-image-file>'
To send an image from url:
- service: notify.my_device
data:
message: ''
data:
photo:
- url: 'http://<your-destination>'
username: <username>
password: <password>
username
and password
are optionals.
All the above types of notification are builtin in Zanzito. If you wish to experiment further, you can setup a notifier with a fake device-name
and manually subscribe to it in the Reports section. All topics name information is in the manual.
Latest versions of Zanzito and Home assistant are required.
That would be all for now, thanks!
gl