get:
Code: Select all
MacBook-Pro-van-Arco % curl -X GET -H "Authorization: Bearer xxxx.xxxxxxxxxxxsecretxxxxxxxxxxx.xxx-FE8" \
-H "Content-Type: application/json" http://10.0.102.100:8123/api/states/input_number.deurbel
Code: Select all
{"attributes": {}, "context": {"id": "0824cef7ea3111ea833e376956bd3d82", "parent_id": null, "user_id": "d4561b3365de483bb9d2d0dcc4a56faa"}, "entity_id": "input_number.deurbel", "last_changed": "2020-08-29T19:51:29.914896+00:00", "last_updated": "2020-08-29T19:51:29.914896+00:00", "state": "200"}%
Code: Select all
MacBook-Pro-van-Arco % curl -X POST -H "Authorization: Bearer xxxx.xxxxxxxxxxxsecretxxxxxxxxxxx.xxxx-FE8" \
-H "Content-Type: application/json" \
-d '{"state": "200"}' \
http://10.0.102.100:8123/api/states/input_number.deurbel
Code: Select all
{"attributes": {}, "context": {"id": "0824cef7ea3111ea833e376956bd3d82", "parent_id": null, "user_id": "d4561b3365de483bb9d2d0dcc4a56faa"}, "entity_id": "input_number.deurbel", "last_changed": "2020-08-29T19:51:29.914896+00:00", "last_updated": "2020-08-29T19:51:29.914896+00:00", "state": "200"}%
i will try to make this, but is your code available on github?