I did just try to change my mosquitto server certificate. I was using a certificate create from instructions in Owntracks, using a self-created ca certificate.
I switched to a server certificate from cacert.org. I’m still getting the same error with Zanzito, but Owntracks is working fine.
What I noticed was that Owntracks did give me the same error until I updated the path to the ca certificate file inside Owntracks. As far as I can see there are no option inside Zanzito to specify the ca certificate, could that be where the problem originate?
Would I be abusing if I asked you to share your configurations of zanzito? Is this even possible? So that maybe have some sort of cookbook for zanzito based on your work since i guess you are the one with more use cases onto zanzito
Sure. I plan to share my examples once I get everything works perfectly. I am still in Work in Progress stage. I might share them in another thread so that I won’t flood this thread with unrelated posts.
I’m wondering can zanzito do voice recognition? I notice Google Now can do that. Perhaps Google allows developer to have this via some kind of API?
The reason why is I want to protect the automation so that only certain people can issue the command.
Another possible usage is everyone in the house can use the same command “Where is my phone?”. The activity topic in zanzito would be %devicename%/%user%/chitchat with %user% being the variable set in zanzito. Each user will his/her own voice print in zanzito.
Name: Balcony Light
Topic: %devicename%/switch/light/balcony
Payload: on
Voice cmd: turn on balcony light
Activity #2
Name: Balcony Light
Topic: %devicename%/switch/light/balcony
Payload: off
Voice cmd: turn off balcony light
…and this is in my HA automation:
- alias: 'MQTT Switch'
trigger:
platform: mqtt
topic: myphone/switch/#
action:
- service_template: >
homeassistant.turn_{{trigger.payload}}
data_template:
entity_id: >-
{{ trigger.topic.split('/')[-2] }}.{{ trigger.topic.split('/')[-1] }}
- service: mqtt.publish
data_template:
topic: >-
zanzito/{{ trigger.topic.split('/')[-4] }}/notification
payload: >-
{% set responses = [
"OK",
"Sure",
"If you insist",
"Done",
"Alright",
"No worries",
"I can do that",
"Leave it to me",
"Consider it done",
"As you wish",
"By your command",
"Affirmative",
"No Problem"
] %}
{% set rindex = (range(0, (responses | length - 1) )|random) -%}
{{responses[rindex]}}
As you can see, this is not the most ideal way to do it because for each switch/light/script that you want to control, you have to create 2 activities. If you have 50 items you want to control, you have to create 100 activities in total.
Right now, with the support of getting payload from vocal command, I am thinking of shrinking everything into one activity and one automation for every smart items in my house. Still work in progress. Faced some obstacles. Might need some advice here.
not sure if this is available or programmed. Is it possible to create home shortcuts? This way you could fire up activities with one touch from home screen (sort of HTTP Shortcut program)