
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!
Moderator: leecollings
Perhaps it is complicated for you.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.
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",
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
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)))
No, that is not completely true. Yes, I support my solution, and it would have been strange, if I didn't.I fully understand you want to promote your solution.
Code: Select all
#!bin/bash
catt -d 'Woonkamer' cast_site http://192.168.68.201:8082/ >/dev/null &
Thanks, that was exactly what i`m looking forwaltervl wrote: ↑Saturday 11 January 2025 10:22 See https://community.home-assistant.io/t/u ... 130332/161
Put the volume down before sending
Users browsing this forum: No registered users and 1 guest