#Any way to rotate a camera 90 degrees in a camera card? (even tried AI help)

1 messages · Page 1 of 1 (latest)

rough osprey
#

how to rotate camera stream in a dashboard card in home assistant?
I have one that is mounted 90 degrees, so i need to turn it 90 degrees in software as well.
I noticed that card_mod doesn't really work if i do this:

  style: |
    hui-image {
      transform: rotate(90deg);
    }```
Are there other ways to turn the camera? I'm using "Advanced camera card" but would'nt mind using alternatives. its just a webrtc stream.

I realise that rotating a camera also works with go2rtc encoding, but i noticed the webrtc stream is then lagging too much to be reliable, while the original non-re-encoded stream is still working great. Hence, i'm looking for a way to rotate the video in the card itself.
mild badger
#

My Reolink camera uses this code

card_mod:
style: |
ha-card {
transform: rotate(270deg);
margin-top: 71px;
transition: none !important;
}

rough osprey
#

thanks, that works! 😄 its not super clean, but it works.