…continue
Skill #18: Send Message
Command examples: “Jarvis, message living room Luke it’s time to go to bed”
Now, you can message to other Zanzitos (or other notification platform) using your voice and have your message read out loud. You need to create one activities per recipient.
Activities in Zanzito:
Activity #1:
Name: Message Living Room
Topic: %devicename%/message/livingroom
Payload: [empty]
Retained: [uncheck]
Voice cmd: message living room
Get payload from vocal command: [check]
Automation in HA:
- alias: 'Message'
trigger:
- platform: mqtt
topic: tonystark/message/+
- platform: mqtt
topic: office/message/+
- platform: mqtt
topic: livingroom/message/+
- platform: mqtt
topic: bedroom/message/+
action:
- service_template: >-
notify.{{ trigger.topic.split('/')[-1] }}
data_template:
title: ""
message: >-
{% set devicename = trigger.topic.split('/')[-3] %}
{% if devicename == 'tonystark' %}
{% set from = 'Tony' %}
{% elif devicename == 'livingroom' %}
{% set from = 'living room' %}
{% else %}
{% set from = devicename %}
{% endif %}
Message from {{from}}, "{{trigger.payload}}"
- service: mqtt.publish
data_template:
topic: >-
zanzito/{{ trigger.topic.split('/')[-3] }}/notification
payload: >-
OK. Message, "{{trigger.payload}}" sent to {{ trigger.topic.split('/')[-1] }}
Skill #19: Show me living room
Command examples: “Jarvis, show me living room”
With this skill, you can ask Jarvis send you the snapshot from your camera! Just duplicate the activities and automation for each cameras that you want to see.
Activities in Zanzito:
Activity #1:
Name: Show me Living Room
Topic: %devicename%/showme
Payload: livingroom
Retained: [uncheck]
Voice cmd: show me living room
Get payload from vocal command: [uncheck]
Automation in HA:
- alias: 'Show me living room'
trigger:
- platform: mqtt
topic: +/showme
payload: "livingroom"
action:
- service_template: >-
notify.{{ trigger.topic.split('/')[-2] }}
data:
message: ""
data:
photo:
- url: http://<cam snapshot URL>
username: !secret cam_username
password: !secret cam_password