Exploring Custom Battery State Cards and Camera Integration

Hello everyone! I wanted to share my experience with custom battery state cards and how I integrated them with binary sensors. I’ve been using the custom:battery-state-card for displaying battery levels, and it’s been working great. However, I wanted to use the same card for binary sensors to maintain consistency in my UI.

Initially, I faced a challenge where the card displayed battery levels as 100% or 0% instead of the desired ‘On’ or ‘Off’ states. After some research, I realized this was due to the state mapping in the card’s configuration. I found that by adjusting the state map and adding color coding, I could make the statuses more visually distinct, especially with multiple sensors.

Here’s a snippet of the configuration I used:
yaml
state_map:

  • from: ‘on’
    to: 0
  • from: ‘off’
    to: 100

I also wanted to share a tip for anyone looking to integrate their Wyze video doorbell into their camera group. I was initially disappointed that it didn’t show up by default, but after some digging, I discovered that adding the doorbell to the camera group required enabling the motion sensor separately. It’s a minor tweak, but it makes the integration seamless!

On another note, I’ve been exploring Matter over Thread with Nanoleaf bulbs. It’s amazing how reliable they’ve become with the latest firmware updates. I’m curious to see what other brands will offer in this space, but for now, Nanoleaf has been a fantastic choice.

If anyone has tips on optimizing energy dashboards or troubleshooting Tuya integrations, I’d love to hear your experiences. Happy automating! :rocket: