Wonder if anyone has any suggestions, I’m wanting to use Node-Red for the following automation. On door-bell press popup video feed to a device using a browsermod service. I’ve got it 99% there but failing with one small part, suspect I need to escape a hyphen.
I do get the popup, so data is being passed to HA and browsermod is working, however, it’s displaying an invalid formatting error for the lovelace card. I’ve tracked the issue down to the following:
I have the following in the data field of a call service node:
"cameras":{
"- camera_entity": "camera.g4_doorbell_medium_insecure",
"camera_name": "door_bell",
"frigate_url": http://192.168.1.166:5000,
"live_provider": "webrtc-card",
"webrtc_card":{
"entity": "camera.g4_doorbell_medium_insecure"
}
Output in Home Assistant front end error is:
cameras:
'- camera_entity': camera.g4_doorbell_medium_insecure
camera_name: door_bell
frigate_url: http://192.168.1.166:5000
live_provider: webrtc-card
webrtc_card:
entity: camera.g4_doorbell_medium_insecure
Issue is this line:
'- camera_entity': camera.g4_doorbell_medium_insecure
I need it to not produce the ‘ around – camera_entity
Full code being used in node-red service call node:
{
"title": "Door Bell",
"card": {
"type": "custom:frigate-card",
"motion_entity": "binary_sensor.front_gate_person_motion",
"menu": {
"mode": "overlay-bottom",
"buttons": {
"frigate_ui": false,
"frigate": false,
"snapshots": false,
"clips": true,
"fullscreen": true,
"download": false
}
},
"entities": {
"- entity": "group.motion_frontgarden",
"show": true
},
"view": {
"default": "live"
},
"event_viewer": {
"controls": {
"next_previous": {
"style": "chevrons"
},
"auto_play": true
}
},
"dimensions": {
"aspect_ration_mode": "static"
},
"cameras": {
"- camera_entity": "camera.g4_doorbell_medium_insecure",
"camera_name": "door_bell",
"frigate_url": "http://192.168.1.166:5000",
"live_provider": "webrtc-card",
"webrtc_card": {
"entity": "camera.g4_doorbell_medium_insecure"
}
},
"event_gallery": {
"min_column": 5
}
},
"deviceID": [
"eoin_laptop"
],
"large": "true",
"hide_header": "true"
}
Full error on the popup:
type: custom:frigate-card
motion_entity: binary_sensor.front_gate_person_motion
menu:
mode: overlay-bottom
buttons:
frigate_ui: false
frigate: false
snapshots: false
clips: true
fullscreen: true
download: false
entities:
'- entity': group.motion_frontgarden
show: true
view:
default: live
event_viewer:
controls:
next_previous:
style: chevrons
auto_play: true
dimensions:
aspect_ration_mode: static
cameras:
'- camera_entity': camera.g4_doorbell_medium_insecure
camera_name: door_bell
frigate_url: http://192.168.1.166:5000
live_provider: webrtc-card
webrtc_card:
entity: camera.g4_doorbell_medium_insecure
event_gallery:
min_column: 5