I used the camera integration to add a camera entity with the rtsp stream of my camera.
While adding a card to a lovelace dashboard I tried adding it by entity. I looked for my new camera entity I just created and clicked on the name of it. The stream opened. I clicked on the gear icon in the upper right corner and in the menu I could change the camera’s orientation.
Bottom line: The orientation can be changed in the options of the entity.
I was looking for a solution to this myself and found this thread here - but was struggling as the solution lacked detail. So, for others that end up here looking for a solution, maybe this will help:
I know nothing about this card - but this card-mod code MAY work only with old versions of card-mod since starting from some version it requires a “card_mod” keyword.