question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: sensor and binary_sensor opposite

See original GitHub issue

Current Behavior

When the sensor is closed the icon is highlighted

binary_sensor is open it is highlight

Expected Behavior

They both act the same way. Preferable highlight/colored when in the open position.

Can there be a switch to invert the state for the icon?

Steps To Reproduce

2022-05-10_10-40-44

Environment

- OS: Ubuntu 20.04
- Home Assistant Core 2022.5.3
- Home Assistant Supervisor 2022.05.1
- Docker Version 20.10.15

Anything else?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MechEng70commented, May 11, 2022

I will close this as I was able to create binary sensors from the sensors to allow them to act as needed. Thank you!

0reactions
MechEng70commented, May 11, 2022

Interesting. I will look at creating a binary_sensor from the sensor.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trigger-based binary sensor: icon is set in opposite way
The "icon" is either “mdi:shield-check” when ON or “mdi:shield-off” when OFF. Works fine. Now this trigger-based sensor: - trigger: - platform: ...
Read more >
Binary sensor not properly shown · Issue #505 · kalkih/mini ...
I want to graph two different binary sensors, one for a door lock sensor, the other for my heating systeem Now, using this...
Read more >
Binary Sensor Component
With ESPHome you can use different types of binary sensors. They will automatically appear in the Home Assistant front-end and have several configuration ......
Read more >
How to handle multiple endpoints in Homeassistant
2/ contrary to other devices which probably have state_1, state_2, etc… ... Forget about input_boolean, it can be easier with binary_sensor template:.
Read more >
Change defaut state of a binary sensor from always ON to ...
Right now they seem to work in reverse of logic. They are always in the ON state or motion detected state, and should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found