Page 2 of 2

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Friday 15 May 2020 23:00
by wervisser
Sorry, fool me once... though this is the second time I wrote in Dutch :-)

Anyway, just minutes after I posted my reply I came across a topic which mentioned copying the paho folder to the dist-packages in Python2.7. This actually did the trick for me.

But thank you for your response, much appreciated!

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Saturday 16 May 2020 10:36
by JuanUil
Looks good
going to try it as well

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Thursday 21 May 2020 17:10
by Gleneroo
Thanks a lot FireWizard for this clue on showing domoticz on google home screen with CATT. It works perfectly.

For saying "hey google show me my domoticz", I do not know why you need to do so complicated things.
For me, dummy switch + one line script + IFTTT work perfectly.

Well, if that helps...

Image
Image
Image

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Thursday 21 May 2020 21:54
by FireWizard
Hi,
For saying "hey google show me my domoticz", I do not know why you need to do so complicated things.
For me, dummy switch + one line script + IFTTT work perfectly.
Perhaps it is complicated for you.
In my case I run Domoticz, Mosquitto and also Node Red on different hardware and IP addresses

For other controls, like lights and a thermostat I use the nora node in Node Red, So for me it was simple to pick-up the Voice message from Google Assistant.

I even started with 1 virtual switch, but to display a Domoticz screen you have to push the button or to go for another solution.
I could have activated from Node Red this push-button. But what if you want to control the 6 or 7 tabs with voice commands?
Then you need 6-7 virtual switches.

I know IFTTT and I even use it for pushing the call history from my mobile phone to Domoticz (via Node Red), but I do not like to open a port from the internet to my production Domoticz.
I run IFTTT for this purpose via a webhookrelay, so that there are no open ports.

But fortunately there are more solutions for something like this and it is good that people can choose.
Thanks for the response.

Best regards

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Monday 25 May 2020 18:15
by Gleneroo
Hi

I fully understand you want to promote your solution. It is good there are different ways to achieve this, compared with problems for which nobody can find any solution at all. Fortunately anyone is free !
I just don't find it reasonnable for such a simple thing to involve domoticz, node red + nodered NORA, mosquito, mqtt launcher, CATT. For someone not having this, he would have 4 new softwares to install !
Plus I would be concerned with stability, maintenance, and indeed NORA will not be sustainable.
Often nice services like this don't stay live one year or two (eg gbridge), but since in this case it is already said it will not be maintained if too many people connect or will have a cost, I would not build on it.
But you built your thing, very good and congratulations.
My point is just to highlight there are much simpler ways to achieve the same thing.
If some people are interested and don't find enough details then don't hesitate ask questions.

On your comments: yes but you would need x dummy switches.
Actually no, I can use text switch.
Credit to this: https://bierdok.net/post/piloter-sa-box ... assistant/

It is even better because the sentence can have as many aliases as you want (different ways to ask the same thing).
This is already quite refined ; for a basic use it can be simplified. Best is to start with Bierdok script. I use only node red CAST to have GH speak (but it is not the purpose of this thread so could be removed).

Example for temperature

Code: Select all

local captors = {
	["T intérieur salle à manger"]="delasallemanger danslasallemanger lintrieur delintrieur intrieure",
	["T extérieur salle à manger"]="lextrieur delextrieur extrieure devantlafentre dehors dudehors",
	["T Congélateur"]="duconglateur dansleconglateur conglateur",	
and :

Code: Select all

	elseif command == 'get' then
	   local appconnut=false
            local text = get(deviceValue, 3):gsub("%W", ""):lower()
            for captor,words in pairs(captors) do
                for word in words:gmatch("%w+") do
                    if text == word then
                            local temperaturerelevee = otherdevices[captor]
                            cmd="curl -s --globoff  \"http://192.168.1.104:1880/temp?valeur=" .. temperaturerelevee .. "\"" -- this is node red with cast node, just to say what is the temperature
                            os.execute(cmd) 
                            os.execute("catt cast_site http://192.168.1.104:8080/#/Devices/" .. tonumber(otherdevices_idx[captor]) .. "/Log") -- casting domoticz device page
                            appconnut=true
                    end
                end
            end
            if appconnut==false then
                os.execute('curl -s --globoff "http://192.168.1.104:1880/nodered?mess=4"') -- oral message: not found this device
            end
You see, only one dummy switch, and can have as many captors as you want & with aliases. Says temperature (optional) and shows domoticz device page.

For cameras, can use the same principle.
I have 8 cameras on NVR and the script is just one line !

Code: Select all

elseif command == 'cam' then
            os.execute("catt cast_site http://admin:[email protected]/cgi-bin/snapshot.cgi?channel=" .. tonumber(get(deviceValue, 3))) 
 
It is even simpler in this case because I say "show camera x", but if instead of saying the number I want to say "backyard", then I can apply the same logic.

Best regards

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Monday 25 May 2020 21:56
by FireWizard
Hi,

@Gleneroo

You wrote:
I fully understand you want to promote your solution.
No, that is not completely true. Yes, I support my solution, and it would have been strange, if I didn't.
And therefore if someone has questions, I try to explain.

Different users have different applications.
And of course, if you have to install these programs and to configure it, it will take some time.

But in my case I had already MQTT and Node Red running and I'm quite familiar with these.
So it is logical behavior, if you use a known solution again.

As you said, fortunately anyone is free to choose the solution, that fits best in his application.

There are many solutions to communicate with Google Home (Assistant).

Whether NORA, will be sustainable, or not, the future will show.

Currently, I'm aware of at least 6 solutions to connect to Google Home.
See: https://www.domoticz.com/forum/viewtopi ... 68#p247868
So if Nora ceased to exist, it is not difficult to move to another solution and at that time there will be more than 6.

No, I do not promote this solution, I use it myself and, as there were questions, I shared the solution.
It works for me.

You shared your solution here too and I hope more people will do. It is appreciated and also your detailed explanation.

Regards and have fun.

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Thursday 27 January 2022 8:45
by edwin1234
I installed catt, but get this error:
catt cast "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
Traceback (most recent call last):
File "/usr/local/bin/catt", line 6, in <module>
from catt.cli import main
File "/usr/local/lib/python3.7/dist-packages/catt/cli.py", line 6, in <module>
from importlib.metadata import version
ModuleNotFoundError: No module named 'importlib.metadata'

When i try to install it with
sudo pip3 install importlib-metadata
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (4.6.4)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata) (3.5.0)
Requirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in /usr/local/lib/python3.7/dist-packages (from importlib-metadata) (3.10.0.0)

Someone an idea?

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Thursday 27 January 2022 13:45
by waltervl
importlib.metadata (not importlib-metadata) seems to be a python 3.8 library
https://realpython.com/lessons/importlibmetadata/

You have to search further if importlib.metadata is compatible with importlib-metadata and how to repair it in the original catt program

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Thursday 27 January 2022 14:10
by FireWizard
Hello @edwin1234,

Edwin, I saw you had some bad luck, as there seems to be an issue with that library, just when you installed a newer version.
See: https://github.com/skorokithakis/catt/b ... ANGELOG.md
It is currently indicated as "Unreleased", but I saw already that @skorokithakis pushed a new version (0.12.7) 4 hours ago and that should fix your issue.

Check this release and report back, if that solves your problem.
Otherwise open an issue on github (https://github.com/skorokithakis/catt),

Regards

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Thursday 27 January 2022 16:17
by edwin1234
Thanks , firewizzard.

Its working now.

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Saturday 11 January 2025 9:31
by arjan93
I use CATT to cast my dashticz dashboard with current energy readings to my google nest. I sart the casting every hour between 09:00 and 21:00
for 10 minutes with the folowing script:

Code: Select all

#!bin/bash
catt -d 'Woonkamer' cast_site http://192.168.68.201:8082/ >/dev/null &
This works perfectly but every time the casting starts, the google nest starts with a "ping". This is very annoying when we watch tv :roll:

Does anyone know a solution to disable this ping?

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Saturday 11 January 2025 10:22
by waltervl
See https://community.home-assistant.io/t/u ... 130332/161
Put the volume down before sending

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Saturday 11 January 2025 10:33
by arjan93
waltervl wrote: Saturday 11 January 2025 10:22 See https://community.home-assistant.io/t/u ... 130332/161
Put the volume down before sending
Thanks, that was exactly what i`m looking for :D

Re: CATT (Domoticz on your Google Nest Hub display)

Posted: Saturday 11 January 2025 14:54
by FireWizard
Hi,

See as well: https://www.welcometothefuture.one/vide ... -assistant and also this discussion: https://forums.homeseer.com/forum/media ... itial-ping

I think the best solution is to reduce the volume

Regards