Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate map for the EPL #57

Merged
merged 5 commits into from
Jul 15, 2024

Conversation

obbers
Copy link
Contributor

@obbers obbers commented Jan 16, 2024

This lets you create a card to show the "map" of the data used by EPL.
Screenshot 2024-01-16 100730

@jacconoordam
Copy link

jacconoordam commented Jul 7, 2024

Is it just downloading the Plotly graph and putting the code in the visual editor?
And of couse changing the name/number.
I get still a lot of errors so i must be doing something wrong :-(
"Key 'entities.0.fn_var1' is not expected or not supported by the visual editor.
Key 'entities.0.fn_var2' is not expected or not supported by the visual editor.
Key 'entities.0.fn_var3' is not expected or not supported by the visual editor.
Key 'entities.0.fn_var4' is not expected or not supported by the visual editor."

@bikeymouse
Copy link

Nice card!

However with the sensor in the normal position (with the usb-cable on the bottom side), the map, zones and movements are mirrored. From the point of view of the sensor, the x-axis on the right are the negative numbers and on the left the positive numbers. So with the this map, with the sensor on top facing "downwards", the left side should show the negative x-axis.

With this map that is reversed.

@EverythingSmartHome
Copy link
Owner

Hey, sorry it's taken sooooo long to get to this!

Thanks for the submission, was a great start. I went ahead and made a fix to make the perspective of the target to the sensor correct.

Also added logic so that if a user doesn't have zones 2-4 enabled (they are disabled by default) that the card still works and doesn't error.

Need to get this added to the docs but for now, looks great!

@EverythingSmartHome EverythingSmartHome merged commit 6d67ae0 into EverythingSmartHome:main Jul 15, 2024
30 checks passed
@mkothawala
Copy link

mkothawala commented Jul 31, 2024

I figured out this error. I didn't have Zones 2-4 defined. Once I deleted those lines of code the map worked.

Is it just downloading the Plotly graph and putting the code in the visual editor? And of couse changing the name/number. I get still a lot of errors so i must be doing something wrong :-( "Key 'entities.0.fn_var1' is not expected or not supported by the visual editor. Key 'entities.0.fn_var2' is not expected or not supported by the visual editor. Key 'entities.0.fn_var3' is not expected or not supported by the visual editor. Key 'entities.0.fn_var4' is not expected or not supported by the visual editor."

I'm having this same issue. This is what I get. If anyone figures out why this is happening, please let me know.

image

@obbers
Copy link
Contributor Author

obbers commented Jul 31, 2024

I figured out this error. I didn't have Zones 2-4 defined. Once I deleted those lines of code the map worked.

Is it just downloading the Plotly graph and putting the code in the visual editor? And of couse changing the name/number. I get still a lot of errors so i must be doing something wrong :-( "Key 'entities.0.fn_var1' is not expected or not supported by the visual editor. Key 'entities.0.fn_var2' is not expected or not supported by the visual editor. Key 'entities.0.fn_var3' is not expected or not supported by the visual editor. Key 'entities.0.fn_var4' is not expected or not supported by the visual editor."

I'm having this same issue. This is what I get. If anyone figures out why this is happening, please let me know.

image

Do you have any target entities disabled or renamed? I can generate errors if I start disabling or renaming entities, specifically the X and Y entities. Your entities should be named something like sensor.everything_presence_lite_2fbc58_target_2_y or sensor.everything_presence_lite_2fbc58_target_2_x

@tomas-dorda
Copy link

How do I make it work when the sensor is mounted upside down?

@AaronLayton
Copy link

AaronLayton commented Aug 27, 2024

I may be being dumb, but how do I add this card?

Is it meant to show up when I Add Card ?

**Edit: ** yeah I was being dumb.

For anyone else coming here to look at this,

  1. You need to add a Plotly Graph Card (downloaded through HACS) to your dashboard.
  2. Add the Plotly card and press the show code editor button when adding the card.
  3. You can copy and paste the code from the epl-map.yml file - https://github.com/EverythingSmartHome/everything-presence-lite/blob/main/epl-map.yml
  4. Edit this line https://github.com/EverythingSmartHome/everything-presence-lite/blob/main/epl-map.yml#L45C1-L45C50 and replace the ID with the ID of your device.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants