Page 2 of 2

Re: Script can not run inside Domoticz

Posted: Thursday 18 April 2019 15:28
by vamp
I already solve the problem, a very different way :)

I use Node-Red (inside Docker) so i catch the dummy switch state with MQTT and based the state, send a exec command to the docker host machine that run miio command (with ssh)

It working like a charm! :)

Re: Script can not run inside Domoticz

Posted: Thursday 18 April 2019 17:22
by waaren
Good to hear your problem is solved.
Can you please test this last scriptmodification anyway?
IT might help other forum members in the future.
Thx !





Re: Script can not run inside Domoticz

Posted: Monday 11 May 2020 21:40
by Sebastian
i lost some time for this error. Its all about tokens.
run miio discover as root.
tokens are not share between user and root
you need to add them seperatly for root and your ubuntu/pi user

Re: Script can not run inside Domoticz

Posted: Thursday 06 August 2020 12:34
by HNBC84
I have a little bit of the same problem.
The script in putty works great.

But when i put it in domoticz in a dummy not al the parts work.

/home/pi/.local/bin/catt cast_site http://192.168.xxx.4:xxxx
sudo echo "Bin here 111" > /home/pi/domoticz/log.txt
> /dev/null 2>&1 &

The echo parts work i see them in log.txt, but the cast part nothing happens.

Re: Script can not run inside Domoticz

Posted: Sunday 09 August 2020 13:15
by jannl
You most likely have a problem with your path settings. They are different in a shell script compared to running from domoticz or crontab. The program can not ne found I geuss. You could try with an echo of the path.

Re: Script can not run inside Domoticz

Posted: Sunday 09 August 2020 15:12
by FireWizard

Re: Script can not run inside Domoticz

Posted: Monday 10 August 2020 12:48
by HNBC84
FireWizard wrote: Sunday 09 August 2020 15:12 @HNBC84

See: https://www.domoticz.com/forum/viewtopi ... 07#p231907

Regards
Thnx de user PI script works like a charm!