I’m not sure if this will work, since not all variables can work with service: eufy_security.send_message. If it doesn’t work with a variable, then don’t use variables and specify a specific number.
For example, I slightly rewrote the code taken from here
- type: vertical-stack
cards:
- type: 'custom:webrtc-camera'
url: 'rtsp://admin:[email protected]:554//h264Preview_01_main'
# entity: camera.loungereolink_profile000_mainstream
- type: glance
entities:
- entity: ''
name: Down
type: button
tap_action:
action: call-service
service: eufy_security.send_message
service_data:
message: |-
{
"messageId": "cmd Pan And Tilt Down",
"command": "device.pan_and_tilt",
"serialNumber": "T8410XXXXXXXX",
"direction": 4
}
icon: mdi:camera-control
Possible values:
ROTATE360 = 0
LEFT = 1
RIGHT = 2
UP = 3
DOWN = 4