Geofence for Domoticz

Moderator: leecollings

Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

sundberg84 wrote:
OK, something happened during tonight, not its not a timeout anymore... not i get a Error:Http://xxx.xxx..../json.html?..."
Agh crap, my mistake, I will get a fix out ASAP.

UPDATE: I just put a new version in the Play Store. Port numbers with 5 digits should work now.
Last edited by Appesteijn on Sunday 04 September 2016 11:31, edited 1 time in total.
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: Geofence for Domoticz

Post by sundberg84 »

Thanks for again great support and a GREAT app! I use it daily for my alarm! Thank you.
I drove from home now, and it accually works - its only the test button that does not work. I get this error i wrote above.

/Andreas
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
Masterblaster
Posts: 8
Joined: Monday 12 September 2016 20:12
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Masterblaster »

Hi, i get error:null when i try to connect to my server with my phones. This is internal and external
What am i missing??
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

Masterblaster wrote:Hi, i get error:null when i try to connect to my server with my phones. This is internal and external
What am i missing??
What protocol do you use? (http or https) And do you use a port?
Masterblaster
Posts: 8
Joined: Monday 12 September 2016 20:12
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Masterblaster »

I use http and port 999
Masterblaster
Posts: 8
Joined: Monday 12 September 2016 20:12
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Masterblaster »

I changed the port setting/remote shared port. But now i think that is the wrong place to change the port. Leaving the port empty or use the default port 8084 in the app gives connection errors.
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

Masterblaster wrote:I changed the port setting/remote shared port. But now i think that is the wrong place to change the port. Leaving the port empty or use the default port 8084 in the app gives connection errors.
You should use the same port as you use in your browser (default http 8080, https 443), don't use the 'remote shared port'.
Also use 'Basic-Auth' and don't use the login screen.
User avatar
thecosmicgate
Posts: 188
Joined: Monday 06 April 2015 14:37
Target OS: Linux
Domoticz version: newest
Location: The Netherlands / Hoeven
Contact:

Re: Geofence for Domoticz

Post by thecosmicgate »

Is it possible to make a version where it's possible to connect to 2 servers. In the domoticz app you can configure a 2nd server when a local connection (wifi) is selected / chosen / connected.

This is nice because internal I can access domo on different ports then external (https)
It's nice to be important, but it's more important to be nice
Scooter ;)
Masterblaster
Posts: 8
Joined: Monday 12 September 2016 20:12
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Masterblaster »

Default port on a synology device =8084 . Now it works. Thx
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Geofence for Domoticz

Post by heggink »

Does it auto start on boot?
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
rlschulz
Posts: 20
Joined: Sunday 25 October 2015 16:33
Target OS: Windows
Domoticz version: 3.5877
Contact:

Re: Geofence for Domoticz

Post by rlschulz »

When I go to save, it errors out and closes. It does turn the dummy switch on when I test. So it looks like everything works, but it won't save.
sweup
Posts: 37
Joined: Friday 19 February 2016 13:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by sweup »

I want to flip "on/off" commands when both my and my wifes phone is in/outside the geofence - possible?
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

heggink wrote:Does it auto start on boot?
Yes it tries. Sometimes the geofence API isn't ready yet, but then your will get a message that you need to manually enable the geofence.
rlschulz wrote:When I go to save, it errors out and closes. It does turn the dummy switch on when I test. So it looks like everything works, but it won't save.
Do you have the Google Play Services installed and does DomoFence have the correct permissions?
sweup wrote:I want to flip "on/off" commands when both my and my wifes phone is in/outside the geofence - possible?
Personally I use three virtual switches. One for me and one for my wife. These are switched by crossing the geofence.
Then I have a third virtual switch 'Anybody home' and I switch the third one with blockly when both the other switches are off.
guantolento
Posts: 129
Joined: Saturday 01 October 2016 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version: LastBeta
Location: Italy BG
Contact:

Re: Geofence for Domoticz

Post by guantolento »

good evening to everyone. now i have install and configure the android phone. if i mean the system work in this mode. when the phone is in the radius of the geofence the virtual light switch is in on mode. if the phone isn't in the radius of the geofance the virtual light switch became in off mode.
i understand ? now i setting the radius in 250 mt.
i want to switch on some light external of the house when is night and i arrived at home. it is possible ?
Master (pi3) - MB sensors + Dummy + Sysfs gpio + 1 NodOn MSP-3 + 1 Aeotec DSB28 Energy Meter + 3 Danfoss RS Room + 7 Danfoss Z Thermostat + 1 Swiid Inter + 9 FGS222
Slave01 (pi2) - MB sensors + Dummy + Weather Underground + 2 FGS223 + 1 FGWPE/F
sweup
Posts: 37
Joined: Friday 19 February 2016 13:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by sweup »

sweup wrote:I want to flip "on/off" commands when both my and my wifes phone is in/outside the geofence - possible?


Personally I use three virtual switches. One for me and one for my wife. These are switched by crossing the geofence.
Then I have a third virtual switch 'Anybody home' and I switch the third one with blockly when both the other switches are off.[/quote]


Thanks. Domofence switch seams to work but I don't get my alarm switch to be turned on. Does this Blockly seams ok?

I got two geofence, so "when geofence 1 and geofence 2 is on, larm should be switched on". I got a similar one for "off", bad approach?
Image
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

guantolento wrote:good evening to everyone. now i have install and configure the android phone. if i mean the system work in this mode. when the phone is in the radius of the geofence the virtual light switch is in on mode. if the phone isn't in the radius of the geofance the virtual light switch became in off mode.
i understand ? now i setting the radius in 250 mt.
i want to switch on some light external of the house when is night and i arrived at home. it is possible ?
That is correct.

Switching a light when you arrive can be done with an event (blockly).

sweup wrote:
Thanks. Domofence switch seams to work but I don't get my alarm switch to be turned on. Does this Blockly seams ok?

I got two geofence, so "when geofence 1 and geofence 2 is on, larm should be switched on". I got a similar one for "off", bad approach?
This is how I switch my 'Somebody home?' virtual switch:
Schermafdruk 2016-11-12 11.35.54.png
Schermafdruk 2016-11-12 11.35.54.png (35.48 KiB) Viewed 2822 times
guantolento
Posts: 129
Joined: Saturday 01 October 2016 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version: LastBeta
Location: Italy BG
Contact:

Re: Geofence for Domoticz

Post by guantolento »

Good morning,
it's ok a blocky script like this or i take some mistake ?
in the setting of the script blocky what do mean "event active" i think i must flag it if i want to "use" the script or not flag if the script is "out of use". it's ok ?
Attachments
rientro a casa.JPG
rientro a casa.JPG (27.41 KiB) Viewed 2817 times
Master (pi3) - MB sensors + Dummy + Sysfs gpio + 1 NodOn MSP-3 + 1 Aeotec DSB28 Energy Meter + 3 Danfoss RS Room + 7 Danfoss Z Thermostat + 1 Swiid Inter + 9 FGS222
Slave01 (pi2) - MB sensors + Dummy + Weather Underground + 2 FGS223 + 1 FGWPE/F
guantolento
Posts: 129
Joined: Saturday 01 October 2016 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version: LastBeta
Location: Italy BG
Contact:

Re: Geofence for Domoticz

Post by guantolento »

Hello, using the script post under i have a problem. when iam at home the light in the scene are always "on".
anyone can help me ?
rientro a casa.JPG
rientro a casa.JPG (27.38 KiB) Viewed 2803 times
Master (pi3) - MB sensors + Dummy + Sysfs gpio + 1 NodOn MSP-3 + 1 Aeotec DSB28 Energy Meter + 3 Danfoss RS Room + 7 Danfoss Z Thermostat + 1 Swiid Inter + 9 FGS222
Slave01 (pi2) - MB sensors + Dummy + Weather Underground + 2 FGS223 + 1 FGWPE/F
sweup
Posts: 37
Joined: Friday 19 February 2016 13:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by sweup »

sweup wrote:
Thanks. Domofence switch seams to work but I don't get my alarm switch to be turned on. Does this Blockly seams ok?

I got two geofence, so "when geofence 1 and geofence 2 is on, larm should be switched on". I got a similar one for "off", bad approach?
This is how I switch my 'Somebody home?' virtual switch:
Schermafdruk 2016-11-12 11.35.54.png[/quote]

Thanks for your effort. Why do you have "Or" in your first logic and then "And" in your second logic (ie Mark and Femke)? I tried "And" for both logics but the alarm status is not triggered. Im thinking if Google Daze feature mess things up.
Appesteijn
Posts: 134
Joined: Friday 10 April 2015 23:53
Target OS: Linux
Domoticz version:
Contact:

Re: Geofence for Domoticz

Post by Appesteijn »

sweup wrote: Thanks for your effort. Why do you have "Or" in your first logic and then "And" in your second logic (ie Mark and Femke)? I tried "And" for both logics but the alarm status is not triggered. Im thinking if Google Daze feature mess things up.
Because Mark OR Femke could enter the geofence (so one of us) and then somebody is home, while I only want to switch 'someone home' to 'off' when we are both away.

You could check 'Show current states' to see if you check against the correct 'state-name' (on/off) in the blockly.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests