I have found a script to add an on/off button in lovelace for google drive backup add-on using REST api. There is error in the log however. What am I missing?
Empty reply found when expecting JSON data
sensor.yaml
- platform: rest
resource: http://192.168.1.20:8123/api/hassio/addons/cebe7a76_hassio_google_drive_backup/info
name: gdrivebackup
value_template: '{{ value_json.data.state }}'
scan_interval: 60
headers:
Authorization: '!secret token'
Content-Type: application/json
json_attributes_path: "$.data"
json_attributes:
- version
- version_latest