[Feature Request] Value translation for Binary sensors from Home Assistant #3376
Replies: 4 comments
-
Thanks for posting a discussion about homepage here on GitHub. Homepage now uses a fancy new AI tool thanks to our friends at Glime, so the answer below is the AI bot's attempt to answer your question. If you feel it's sufficient you can mark the answer and close this post, otherwise feel free to leave it open of course! Thanks for using Homepage! ❤️ To translate the value of a Home Assistant binary sensor from "on/off" to "open/closed" or any other custom values within the Homepage widget configuration, you can use the Here's an example of how you might configure the widget to remap the binary sensor state: widget:
type: homeassistant
url: http://homeassistant.host.or.ip:port
key: access_token
custom:
- state: binary_sensor.window_sensor
label: Window
value: "{state}"
remap:
- value: "on"
to: "Open"
- value: "off"
to: "Closed" In this example, the Please note that the If you need further assistance or clarification, please let me know! This comment was generated by Glime. |
Beta Was this translation helpful? Give feedback.
-
this does not work dear bot. Here is my code:
|
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically closed due to lack of community support. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
-
Description
I did not find if or how its possible but if not I would like to see a way to translate the value of HA binary sensor from on/off to e.g. open/closed in case its a window or something different. The setting from HA seems to be ignored
Other
No response
Beta Was this translation helpful? Give feedback.
All reactions