Page 1 of 1

Floorplan update through event triggers

Posted: Friday 30 October 2015 11:46
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

Re: Floorplan update through event triggers

Posted: Monday 02 November 2015 8:45
by Nicklorion
Has anybody done something like this?

Re: Floorplan update through event triggers

Posted: Monday 02 November 2015 13:04
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?

Re: Floorplan update through event triggers

Posted: Monday 02 November 2015 13:23
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

Re: Floorplan update through event triggers

Posted: Monday 30 November 2015 11:50
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

Re: Floorplan update through event triggers

Posted: Monday 04 April 2016 15:23
by duanejackson
Yes!

While home renovation I have done something very similar to this.

Re: Floorplan update through event triggers

Posted: Monday 04 April 2016 18:26
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.