Floorplan update through event triggers

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Nicklorion
Posts: 3
Joined: Friday 30 October 2015 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Floorplan update through event triggers

Post by Nicklorion »

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
Nicklorion
Posts: 3
Joined: Friday 30 October 2015 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Floorplan update through event triggers

Post by Nicklorion »

Has anybody done something like this?
User avatar
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

Post by Dnpwwo »

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:
  • 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?
Is anyone else interested in this?
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
User avatar
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

Post by Egregius »

I think I already have this in my floorplan 8-)

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

Image
Nicklorion
Posts: 3
Joined: Friday 30 October 2015 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Floorplan update through event triggers

Post by Nicklorion »

Thanks for you replies!

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
duanejackson
Posts: 5
Joined: Monday 04 April 2016 15:16
Target OS: -
Domoticz version:
Contact:

Re: Floorplan update through event triggers

Post by duanejackson »

Yes!

While home renovation I have done something very similar to this.
User avatar
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

Post by Egregius »

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

Who is online

Users browsing this forum: No registered users and 1 guest