So when I tried to add zone cleaning the first time around it was denied as they did not want the zone ID in device_state_attributes not sure about the coordinates though. Instead we opted to use the name the user setup in the app which was a cleaner implementation.
@Santobert what are your thoughts on this? We already grab the boundaries in the update call but I am not sure if we can store that data in the state system. Here is the PR that talks about providing the data in a websocket call instead of the state which I am not sure how to do: https://github.com/home-assistant/home-assistant/pull/19835
I agree with the opinion of balloob. This information is not really part of the deviceās state. But Iāve never used websockets yet, so I canāt help here without doing some research.
Iām really struggling to get this to workā¦ I used the zone points from both floe and debug, but my zones are not even close to being the right sizeā¦ any ideas please?
thanksā¦ I started again and Iām not much further forwardā¦ except I have less hair nowā¦ Any more pointers please? I have changed the image, I would prefer it rotated as it doesnāt fit on card very well verticallyā¦ but I got even more confused thenā¦ map attached I am using I know the zone is right as I just tested that.
or can I rotate the map image manually and then erm try to calibrate it, so it is rotated 90 degrees from the actual map on the phone app? ? I think I am making this far more complicated than I need to doā¦ as usual
truly genius thank youā¦ I have even rotated the map and got it to work. Thank you for the detailed reply and thank you for what is a brilliant cardā¦ This is just what I have been looking forā¦ now time to clean up the map and label it
In another thread I read that the coordinate order is [bottom-left-x, bottom-left-y, top-right-x, top-right-y]. Is this right?
Am I correct in assuming that the top left corner in the picture above have the coordinate X=23162 and Y=34856? The bottom right corner have coordinate X=29812 and Y=25106?
If I place the cursor on the image (in Paint.net) at the same place as the top left corner in the selection I get the coordinates 49,144. Does this mean the map coordinates should be X=49 and Y=144 if I use this specific image for the card?