Update Troubleshooting.md

Fixed revised curl command for send_battery.sh
This commit is contained in:
Philip Abbey
2024-01-12 17:16:45 +00:00
committed by GitHub
parent 827d0dbeec
commit 825e863a68

View File

@ -139,7 +139,7 @@ echo ""
curl -s -X POST \
-H "Content-Type: application/json" \
-d '{ "type": "update_sensor_states", "data": [ {"state": ${level},"type": "sensor","unique_id": "battery_level"}, {"state": ${is_charging},"type": "binary_sensor","unique_id": "battery_is_charging"} ] }' \
-d '{ "type": "update_sensor_states", "data": [ {"state": '${level}',"type": "sensor","unique_id": "battery_level"}, {"state": '${is_charging}',"type": "binary_sensor","unique_id": "battery_is_charging"} ] }' \
${URL}/webhook/${WEBHOOK_ID}
```