Morning,
I currently am using a device which publishes data via a Webhook which updates a Rest sensor in HA. The device is battery powered so sleeps for an hour, before waking at which point a Webhook is updated. The device seems to regularly unavailable in HA. Is there anyway to set the device to update purely when it receives Webhook updates? I’ve increased the polling interval, however that doesn’t seem to change anything.
- platform: rest
resource: !secret iparcelbox_rest_api
name: iParcelBox
json_attributes:
- webhook
- licence
- message
- result
- data
value_template: "{{ value_json['data']['boxStatus'] }}"
username: !secret iparcelbox_username
password: !secret iparcelbox_password
authentication: digest
verify_ssl: False
scan_interval: 25900 #7 hours