My Jarvis using Zanzito (Skills Collection)

Let say you have 24 hours, 60 minutes and 60 seconds. That means you need to create 24 x 60 x 60 = 86400 activities. Good luck!

mmhh yeah, in this case you are right :stuck_out_tongue:

…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
1 Like

that’s a nice skill.
I am trying to do everything in Italian, my language (also because in English I have good alternative with the Echo and Google Home, I love Zanzito because I can use Italian), with the weather unfortunately I get back the weather in english, spelled as if it was italian: a disaster.

Any way to get weather in other language?

I found this
https://darksky.net/dev/docs/forecast

and is possible to change the language, although I don’t know how to put that with Zanzito …

Solved:

do you know which is the IP address of an Android IP Webcam?
should be this

http://IP:8080/shot.jpg

but is not working, where should the photo go?

@MrMep

if I go on PHOTO GALLERY

is showing “Updating Pictures…” but not updating

When sent through Zanzito’s notifier component, and if everything related is enabled in Zanzito’s preferences, you get a notification when the pictures arrives. THEN, you find it also in the gallery, but only after it is received as notification. So, I guess, it’s the sending part that is not working…
You should first check the url with a browser, then you put it into a notification service call.

I’m using masterkenobi code. But username and password is in the URL.

It does work on a browser

Then use the URL (with username and password) and remove username and password variables from the code. That mean, just send the URL.

Yes I did that (removed lines with username and password) but where should the picture be visible? (In photo gallery is not)

It will send to your zanzito. You will see it in a notification

This I have in automation

 - alias: 'Foto soggiorno'
    trigger:
      - platform: mqtt
        topic: +/showme
        payload: "soggiorno"
    action:
      - service_template: >-
            notify.{{ trigger.topic.split('/')[-2] }}
        data:
          message: ""
          data:
            photo:
              - url: http://192.168.1.52:8080/shot.jpg

If I do
http://192.168.1.52:8080/shot.jpg

in browser I do ghet a photo (no user or password asigned in program android ip webcam)

I created a new activity
Topic %devicename%/showme
payload soggiorno
retained unchecked
voice cmd foto soggiorno
get payload from voice cmd uncheck

when I run the voice command (I see that is recognized, in outbound is mi5splus/showme soggiorno),

but where is the photo?

Have you created the notify.mydevice entity using zanzito notification custom component?

this?

notify:
  - name: claudio_zanzito
    platform: zanzito
    device-name: mi5splus

Yes. Make sure the name also use the same device name

in log in outbound I have in log
mi5splus/showme soggiorno

so should be ok, or?

Shall I put in topic instead
Topic %devicename%/showme

this
Topic mi5splus/showme

No. The automation assume the notify name is same as device name. In other words, if your device name is mi5splus then the automation will send to notify.mi5splus.

Ohh no, NO activity is working … that’s strange

EDIT
A pi3 reboot solved this. Not sure what it was