Hi all,
I'm wondering if it's possible to update the floor/roomplan using event triggers, and if it's not within the current functionality of Domoticz how to go about creating the functionality?
Let me explain,
I've got serveral PIR motion sensors through out my house connected to a Raspberry pi.
The idea is that once a PIR detects motion I would like to view it on the Floorplan by lighting up that room in which that PIR resides.
I was thinking on using the "svg polygon element" and showing/hiding them on event triggers via javascript, I figured the javascripts should monitor that specific event and update the floorplan for a few seconds.
Is this even feasible with javascript and events?
Kind regards,
Nick
Floorplan update through event triggers
Moderators: leecollings, remb0
-
- Posts: 3
- Joined: Friday 30 October 2015 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
-
- Posts: 3
- Joined: Friday 30 October 2015 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Floorplan update through event triggers
Has anybody done something like this?
- Dnpwwo
- Posts: 820
- Joined: Sunday 23 March 2014 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Melbourne, Australia
- Contact:
Re: Floorplan update through event triggers
The Domoticz web pages don't really monitor events, just changes in device states (which is almost the same thing)
It wouldn't be particularly hard to do just reset all the room polygons during an update and highlight the room(s) the sensor is in.
What would the end game be for this though:
It wouldn't be particularly hard to do just reset all the room polygons during an update and highlight the room(s) the sensor is in.
What would the end game be for this though:
- Would it just be PIRs?
- What about contact devices on doors and windows?
- What if the room was not on the floor currently in view, would it auto scroll it make it visible?
- What colour would the highlight be?
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Floorplan update through event triggers
I think I already have this in my floorplan
Pink filled rooms are rooms with motion detection.
Red rectangles are open windows/doors.


Pink filled rooms are rooms with motion detection.
Red rectangles are open windows/doors.

-
- Posts: 3
- Joined: Friday 30 October 2015 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Floorplan update through event triggers
Thanks for you replies!
As for your questions Dnpwwo,
@Egregius,
How did you accomplish that?
Kind regards,
Nick
As for your questions Dnpwwo,
- Would it just be PIRs? No
- What about contact devices on doors and windows? Them aswell
- What if the room was not on the floor currently in view, would it auto scroll it make it visible? Did not think of that as i only have one floor
- What colour would the highlight be? Custom? i'm thinking red.
@Egregius,
How did you accomplish that?
Kind regards,
Nick
-
- Posts: 5
- Joined: Monday 04 April 2016 15:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Floorplan update through event triggers
Yes!
While home renovation I have done something very similar to this.
While home renovation I have done something very similar to this.
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Floorplan update through event triggers
Oh, I didn't see that question, sorry.
The picture above is a self created PHP floorplan. See my signature for more details.
One of the functions it has is to marque a room as 'protected' by drawing diagonal red lines in it.
Or to show movement by drawing a semi transparent red box.
The picture above is a self created PHP floorplan. See my signature for more details.
One of the functions it has is to marque a room as 'protected' by drawing diagonal red lines in it.
Or to show movement by drawing a semi transparent red box.
Who is online
Users browsing this forum: No registered users and 1 guest