Vocal command for Domoticz

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Vocal command for Domoticz

Post by renerene »

I have been using Jarvis for a week now on my Teclast wall tablet, that also runs Dashticz.
Because of bad voice interpretation, buggy/freezing response, I cannot have it replace my Alexa. I guess it has a 20% succes range for understanding my phrases, where Alexa is 90% correct.

Question:
What is you experience in buying a microphone upgrade?

see also https://www.domoticz.com/forum/viewtop ... 56#p160092
welby
Posts: 36
Joined: Monday 20 November 2017 3:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Australia
Contact:

Re: Vocal command for Domoticz

Post by welby »

zak45 wrote: Friday 04 January 2019 16:48
welby wrote: Friday 04 January 2019 3:57 How do i make it just read the data from the sensor and not everything that it receives?
this should do the trick for Domoticz:
[url]http://192.168.1.xx:xxxx/json.htm?type=devices&rid=<YOUR IDX>[/url]
<YOUR IDX> = Domoticz device IDX

and this for jarvis

SetVariable: Data to value: system.jsonParse(system.httpGetResult().at("/result/0/Data").asText()
Thanks zak but i'm still unsure of what to do with the set variable part? I've been reading the docs and API but i can't get my head around it.
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Vocal command for Domoticz

Post by zak45 »

welby wrote: Friday 04 January 2019 23:36 Thanks zak but i'm still unsure of what to do with the set variable part? I've been reading the docs and API but i can't get my head around it.
Yep, understand.. same for me, take some time.

This is why I decided to create a python plugin for automatic config generation, just to make this soft more accessible for begginer
for the moment, on/off, dimmer, temperature, sensors status, scene, thermostat are running...so you will be able to learn from them.

available soon ... need some more time ;-)
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Vocal command for Domoticz

Post by zak45 »

renerene wrote: Friday 04 January 2019 20:16 Question:
What is you experience in buying a microphone upgrade?

see also https://www.domoticz.com/forum/viewtop ... 56#p160092
Do not have trouble with microphone. this run on samsung galaxy tablet.
You can increase drastically recognition by setting right synonyms
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Vocal command for Domoticz

Post by renerene »

can someone please explain the 'stop' functionality?
I have programmed a dummy device that stops the screen movement. I call this device in the stop action, using JSON.
But, how to activate this stop command? After 'Jarvis, close screens' and 'stop' nothing happens
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Vocal command for Domoticz

Post by zak45 »

renerene wrote: Sunday 06 January 2019 22:34 can someone please explain the 'stop' functionality?
I have programmed a dummy device that stops the screen movement. I call this device in the stop action, using JSON.
But, how to activate this stop command? After 'Jarvis, close screens' and 'stop' nothing happens
Attached example of the configuration generated by the plugin for On/Off action on one device;
This should give you overview of the possibility;
you need to unzip the file and upload the three configuration files into jarvis@home.
Go to Domoticz Net config and put your domoticz IP and port.
Go to Domoticz OnOff and replace /update / adapt the configuration for one of your device IDX number.
no so hard to understand (hope so).
test.zip
(6.11 KiB) Downloaded 66 times
kniazio
Posts: 200
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Vocal command for Domoticz

Post by kniazio »

Is this the plugin we are waiting for?
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Vocal command for Domoticz

Post by zak45 »

kniazio wrote: Monday 07 January 2019 19:50 Is this the plugin we are waiting for?
Nope..; a small part just to show structure/possibility
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Vocal command for Domoticz

Post by renerene »

zak45 wrote: Sunday 06 January 2019 23:28 no so hard to understand (hope so).

test.zip
Guess not.
it is french.
i have modified the variables in on/off configuration. Now what?
Three configurations x 9 tabs = 27 places to edit variables (discussion, recogition, sentence....variable) --> Which, what, why?
do I have to edit SWITCH_URL? Or this is automaticly filled?
Do you call switches by IDx number?
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Vocal command for Domoticz

Post by zak45 »

renerene wrote: Tuesday 08 January 2019 20:46 i have modified the variables in on/off configuration. Now what?
Nothing!
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Vocal command for Domoticz

Post by renerene »

Nothing!
Haha, correct. Waste of time.
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Vocal command for Domoticz

Post by zak45 »

renerene wrote: Wednesday 09 January 2019 7:06 Haha, correct. Waste of time.
Right. And as AE said :
"The only thing that interferes with my learning is my education".

Last news about the plugin:
have made some test to "try" to do Geofencing (yep, last version can retreive GPS coordinate)... but not work as expected (could be me .. need to double-check)
In process to finalize devices creation...
kniazio
Posts: 200
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Vocal command for Domoticz

Post by kniazio »

What's happening with jarvis @ home?
Will there be a plugin for Domoticz, who was promised?
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Vocal command for Domoticz

Post by zak45 »

kniazio wrote: Tuesday 29 January 2019 18:36 What's happening with jarvis @ home?
Will there be a plugin for Domoticz, who was promised?
yep, but we all have life and things not always happend as we want.. still on progress/test, and need now to write the Wiki!!
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Vocal command for Domoticz

Post by zak45 »

for people with some py knowledge.
no support from my side for the moment (not enough time).
but should not be difficult to setup (see some help on doc folder)
this manage :
Voice command
TTS
Android Notification
Geofencing (with Automate)
MyLocation(with Automate)

https://www.dropbox.com/sh/js6a1voczrm7 ... BeUWa?dl=0
kniazio
Posts: 200
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Vocal command for Domoticz

Post by kniazio »

My errors:

Code: Select all

 2019-02-23 19:49:37.849 (DomVoice) Initialized version 1.0.0, author 'zak45'
2019-02-23 19:49:37.874 (DomVoice) lang file : /home/domoticz/plugins/EZJarviz/en_en.lng
2019-02-23 19:49:37.874 Error: (DomVoice) Traceback (most recent call last):
File "/home/domoticz/plugins/EZJarviz/plugin.py", line 968, in loadLang
with open(lang_file, 'r' , encoding='utf-8') as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/home/domoticz/plugins/EZJarviz/en_en.lng'
2019-02-23 19:49:37.874 Error: (DomVoice) __Lang file not exist or to process data from : /home/domoticz/plugins/EZJarviz/en_en.lng__
2019-02-23 19:49:37.874 Error: (DomVoice) __Language file is missing for : en__
2019-02-23 19:49:37.875 Error: (DomVoice) 'onStart' failed 'AttributeError':''module' object has no attribute 'Connection''.
2019-02-23 19:49:37.875 Error: (DomVoice) ----> Line 205 in /home/domoticz/plugins/EZJarviz/plugin.py, function onStart 
configurations are different
Attachments
my config.jpg
my config.jpg (127.13 KiB) Viewed 2176 times
ezjsettings.JPG
ezjsettings.JPG (127.83 KiB) Viewed 2178 times
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Vocal command for Domoticz

Post by zak45 »

FileNotFoundError: [Errno 2] No such file or directory: '/home/domoticz/plugins/EZJarviz/en_en.lng'

you need to take the one on the lng folder.
kniazio
Posts: 200
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Vocal command for Domoticz

Post by kniazio »

there is no en_en.lng file in the lng folder
Which means:

Code: Select all

 2019-02-23 23:17:24.292 Error: (DomVoice) 'onStart' failed 'AttributeError':''module' object has no attribute 'Connection''.
2019-02-23 23:17:24.292 Error: (DomVoice) ----> Line 205 in /home/domoticz/plugins/EZJarviz/plugin.py, function onStart 
what is this
Attachments
my config.jpg
my config.jpg (127.13 KiB) Viewed 2164 times
kniazio
Posts: 200
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Vocal command for Domoticz

Post by kniazio »

I do not understand how it works
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Vocal command for Domoticz

Post by zak45 »

kniazio wrote: Saturday 23 February 2019 23:27 I do not understand how it works
All is on the dropbox.
If you do not have enough python knowledge, not simple.
And without any documentation, not easy.

Maybe better for you to wait for the WiKi.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest