Page 1 of 1

solved: webradio blockly advice needed

Posted: Friday 02 March 2018 18:29
by timop
Hi

I have tricky situation, atleast for me :)
I have event which set swich nobody home on or off when anyone of my family members phones is on wifi. that works quite well.
And I have made event which set netradio On or Off when someone is home depending time (off at night).
First it pi had volumio but then internet radio started to cutoff and and I thought it was bad wifi signal or volumio newest update. I changed to pimusicbox but even worse.

Well now I noticed that problem is this event, it just switches on and off webradio switch on domoticz frequently and thats why it "raps" my webradio.

How should I do this ?

Re: webradio blockly advice needed

Posted: Friday 02 March 2018 19:09
by freijn
I guess your phone goes in sleep mode and connection to wifi is lost, hence the radio goes off?

Re: webradio blockly advice needed

Posted: Friday 02 March 2018 19:58
by timop
not by logs of switches in domoticz.

Re: webradio blockly advice needed

Posted: Friday 02 March 2018 23:30
by gijsje
Should the or not be and in the first line between the times ?

Re: webradio blockly advice needed

Posted: Saturday 03 March 2018 6:51
by timop
Ups. I made rule again so it was default. I will test later.

Re: webradio blockly advice needed

Posted: Saturday 03 March 2018 10:30
by timop
I didnt get it right, but I found this lua script what I did coverted to match my situation
https://www.domoticz.com/wiki/Smart_Lua_Scripts -> "Simple event to switch on devices based on status of other devices & time"
there was error code:
" Router'] == 'On' t$" what should be "Router'] == 'On' then"

Re: webradio blockly advice needed

Posted: Saturday 03 March 2018 11:25
by timop
ok found my problem, I did made new script for ubiquiti controller on my debian server and I forgot another precesense script on. so user error :)

those "or"s are ok and use to be, so if nobody isnt home or at night (at 21 till 8) webradio shuts off.