EverythingSmartHome / everything-presence-lite

Everything Presence Lite
90 stars 34 forks source link

Zones Not Working Correctly #73

Open mark-mcdougall opened 5 months ago

mark-mcdougall commented 5 months ago

I have 2 everything presence lites - unfortunately I can't get either of them working correctly.

EPL1: Running firmware 2023.12.8 EPL2: Running firmare 2023.12.9

What works on both devices: Ocupancy Target 1: Active, Angle, Distance, Resolution, Speed, 1 X, 1 Y (I haven't tested with multiple targets).

On each device I set up 2 zones and set the XY values of the top left and both right corners as per this video https://www.youtube.com/watch?v=W8vOWSbXzKY. The zones I have set appear correct (I took them from the device Target 1 X and Target 1 Y values as instructed in this video https://www.youtube.com/watch?v=wCwMNSeLRcw)

On EPL1: Zone 1 occupancy shows as On but zone 2 never changes from Off. However looking at the Logbook it appears that both zone 1 and zone 2 occupancy sensors are being turned on and off but I can't see this from the device's screen in HA

On EPL2: On the device screen neither zones' occupancy shows as on. Via the Logbook zone 1 shows as turning on and off but zone 2 just shows as going off and then to unavailable.

As I was having so much trouble I decided to download smarthomejunkie's blueprint to see if I could make any progress. On EPL1, in the blueprint I set up the same 2 zones and set zone 1 to turn on/off light 1 and zone 2 to turn on/off light 2. Weirdly the zone 2 blueprint automation worked but zone 1 did not. Even more strange was when I made a normal HA automation based off of the zone occupancy instead of the XY values, zone 1 worked but zone 2 didn't.

This leads me to believe that for EPL1 there is an issue with the zone 1 XY values and the zone 2 occupancy sensor. I have set the XY values multiple times for both zones and have seen no improvement. Using the blueprint for zone 2, and automation for zone 1 kind of works but it is messy and the response time using the zone occupancy value is very slow compared to the XY values.

On EPL2 neither the blueprint or automations work for either zone.

I should note that for the blueprint I set the XY coordinates for the other 2 unused zones to zeroes and the triggered entities to None so that I didn't get an error when I tried to save the blueprint.

Has anyone experienced similar issues? I assume that I am not correctly setting up the zones.

I saw on the discord that some people had success switching the start and end x values - I tried this but had no success. This again suggests to me that I might have my coordinates set up incorrectly with my zone 1. Is there a better way to get the XY coordinates that using the 1 X, 1 Y values?

Anyone got any suggestions for what I can try to get these up and running?

jonwork88 commented 5 months ago

Also not able to get the Zones to work.
Device info Everything_Presence_Lite Firmware: 2023.12.9 Hardware: 1.0.2

Set up 2 zones. Followed the instructions from the same videos listed above. Input the coordinates from Top L and Bottom R for each Zone.

The sensors read me, the main occupancy binary sensor reads me, but I don't register in any of the zones.

I Have tweaked my x,y's several times, and also switched where I take my readings (ie: did from top R to Bottom L as well), doesn't appear to make a difference. Rebooted the sensor after making changes... rebooted HA after making changes. Not sure what else I can do.

Nothing in my EPL yaml about Zones (not sure if there is supposed to be).

Are Zones not working right now? Any suggestions?

Appreciate any help you can provide.

Thnx. Jon

EverythingSmartHome commented 5 months ago

Hi guys (sorry I missed this when it was created)

Can you share some images of the coordinates and settings you are using?

jonwork88 commented 4 months ago

Sorry for the delayed response, no time to during the week. Thanks for reaching out though...

here are the current settings I have for it...

I ended up removing my Zone 2 to see if that made a difference, so I only have Zone 1. You'll notice on the Logbook to the left that it picks up targets, but if just never shows as being in a Zone, Zone 1 Occupancy sensor and Zone 1 Target Count never register....

image

image

Thanks! Jon

Jon Storr-Stronach Email: @.*** Cell: 416-435-2179

On Mon, Feb 19, 2024 at 7:24 AM Everything Smart Home < @.***> wrote:

Hi guys (sorry I missed this when it was created)

Can you share some images of the coordinates and settings you are using?

— Reply to this email directly, view it on GitHub https://github.com/EverythingSmartHome/everything-presence-lite/issues/73#issuecomment-1952341447, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALKH7BGGO3PZ6WIFITFVYR3YUM77DAVCNFSM6AAAAABDCGSDCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJSGM2DCNBUG4 . You are receiving this because you commented.Message ID: @.*** com>

EverythingSmartHome commented 4 months ago

Did you try switching the beginning and end X coordinates around?

jonwork88 commented 4 months ago

only the x coordinates? I changed both the x&y.... but not "just" the X

jonwork88 commented 4 months ago

I flipped the coordinates and I have it "sometimes" registering, and how its registering brought up a thought.

Will the "Zones" that are created off of the 2 sets of coordinates always be a perfect square/rectangle aligned with the orientation of the EPL? If so, that might be part of my problem as I have it coming off a side wall at an angle, it its probably not able to create the zone I am looking for with only 2 sets of coordinates....

Below are a couple of images that show the placement and ~ angle of the EPL and the type of rectangle I want, vs what I think "might" be happening. The Grey outer border represents my walls, and the blue dotted line shows the type of zone I want, with the red dotted line showing the rectangle I "think" I am getting... Does that make sense?

image

image

Thanks! Jon

EverythingSmartHome commented 4 months ago

Yes the second image is correct with the coordinate system

kloppy commented 3 months ago

I have posted a modified package in #39 which includes rotated zones like in the first picture @jonwork88 posted, as I have also put my EPLs into corners. You could give it a try.

neoKushan commented 3 weeks ago

Hi,

I'm really struggling to understand how zones work and the coordinates behind them. I was hoping the EPL documentation would be updated to explain them but so far nothing.

Does anyone have a simple written guide on how to set up and define zones?

poker86 commented 2 weeks ago

Hello, same here, I guess I'm just not completely understanding this. I feel like based on the plot map that I should have zone 1 and zone 2 with active occupancy. but I am not.

Map: map Sensors: sensors

EverythingSmartHome commented 2 weeks ago

What is the actual zone settings here as they aren't shown?

Do you have the start and end X values the right way around with regards to negative and positive numbers?

poker86 commented 2 weeks ago

Controls controls

EverythingSmartHome commented 2 weeks ago

Try swapping the start X and end X values around as mentioned

kloppy commented 2 weeks ago

@poker86 how did you setup that neat map showing zone and target?

poker86 commented 2 weeks ago

it was the Pull Resquest post by @obbers

https://github.com/EverythingSmartHome/everything-presence-lite/pull/57

poker86 commented 2 weeks ago

@EverythingSmartHome, and thank you for helping me with zones. that indeed worked. and also making a great product

bikeymouse commented 4 days ago

@poker86 how did you setup that neat map showing zone and target?

I have also used this map representation, but found out that it has mirrored the x-axis, so that could explain your issues.