Re-map value using state_map #1203
Unanswered
bojanpotocnik
asked this question in
Q&A
Replies: 1 comment
-
We have obviously only one secondary Y-axis. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to display temperatures on primary axis, and "loads" on the secondary axis.
I would like to display the actual wood boiler load in %, so I set the secondary axis range to 0-100. I would also like to display states of multiple pumps on that axis, which are effectively only 0 or 100%. I have read the description of the
state_map
about positions being values on the graph, but this means that while it remaps the states, it still plots the old, not remapped states? Can I trick thestate_map
to remap the states before plotting them?There is one way to do it... which seems absurd
![image](https://private-user-images.githubusercontent.com/4901762/404854579-972a96f1-4b03-4a3d-b733-094b714b1e81.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDI1ODgsIm5iZiI6MTczOTI0MjI4OCwicGF0aCI6Ii80OTAxNzYyLzQwNDg1NDU3OS05NzJhOTZmMS00YjAzLTRhM2QtYjczMy0wOTRiNzE0YjFlODEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDI1MTI4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjIwZTQ0YTA4YzA1NzVjMmY1YTY1YWYzM2JlZWY4NTA3ZjM0NzdlNDE5YzE2NjI5MjdmZjI2OTIxYThhMTk1MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.U169RwjWQtYYuBHIQiabZjGBodTpBiPoAjeZf7zFH7c)
I sense that creating a new template sensor would be a solution, but that seems a bit excessive, and I would need many template sensors 😬
Beta Was this translation helpful? Give feedback.
All reactions