solved: webradio blockly advice needed

Moderator: leecollings

Post Reply
timop
Posts: 57
Joined: Sunday 03 January 2016 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

solved: webradio blockly advice needed

Post 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 ?
Attachments
webradio.PNG
webradio.PNG (30.04 KiB) Viewed 1146 times
Last edited by timop on Saturday 03 March 2018 11:26, edited 1 time in total.
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: webradio blockly advice needed

Post by freijn »

I guess your phone goes in sleep mode and connection to wifi is lost, hence the radio goes off?
timop
Posts: 57
Joined: Sunday 03 January 2016 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: webradio blockly advice needed

Post by timop »

not by logs of switches in domoticz.
User avatar
gijsje
Posts: 132
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: webradio blockly advice needed

Post by gijsje »

Should the or not be and in the first line between the times ?
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches
timop
Posts: 57
Joined: Sunday 03 January 2016 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: webradio blockly advice needed

Post by timop »

Ups. I made rule again so it was default. I will test later.
timop
Posts: 57
Joined: Sunday 03 January 2016 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: webradio blockly advice needed

Post 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"
timop
Posts: 57
Joined: Sunday 03 January 2016 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: webradio blockly advice needed

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest