因为ha官方app上报的不及时,之前我用MacroDroid也做了一个post的,没有问题的。
curl -X POST 'http://xxxx.xyz:8123/api/services/input_number/set_value' -H 'Authorization: Bearer xxx' --data '{"entity_id": "input_number.shou_ji_dian_chi_dian_liang","value": {battery}}' --connect-timeout 30
|