Hello! I’m really newbie in HA and nodered and trying to send some Json from Nodered to get push notify on my android tv’s.
In HA i did next:
- I’ve created group file with these parameters:
Спойлер
notify:
- name: all_tv_devices
platform: group
services:
- service: androidtv_guest
data:
message:
- service: androidtv_bedroom
data:
message:
2.File with services
Спойлер
rest_command:
androidtv_guest:
url: http://192.168.88.115:7979/notify
content_type: 'application/json'
verify_ssl: false
method: 'post'
timeout: 20
payload: >
}}
}
androidtv_bedroom:
url: http://192.168.88.123/7979/notify
content_type: 'application/json'
verify_ssl: false
method: 'post'
timeout: 20
payload: >
And in nodered i created call_service with these parameters.
Code in data field:
Спойлер
{
"data": {
"duration": 10,
"position": 0,
"title": "Уведомление от домофона",
"titleColor": "#50BFF2",
"titleSize": 10,
"message": "Кто-то звонит в домофон",
"messageColor": "#fbf5f5",
"messageSize": 14,
"backgroundColor": "#0f0e0e",
"media": {
"image": {
"uri": "https://v-dver.ru/wp-content/uploads/2016/10/blok-vyzova-eltis-dp300-rdc16-e1477747891210.jpg",
"width": 580
}
}
}
}
When i trying to execute it, HA answers “Call-service API error. Error Message: required key not provided @ data[‘message’]”
Please help me to understand these part of integration.
