I commented on the GitHub issue as well. Would it be possible to use the public:true API. This would at least allow devices to still communicate with Homey (until Athom also kills that).
Thatâs an existing feature (disable authorisation on settings screen; restart app). Iâm thinking on a solution to get whitelisting working again.
Hi Erik,
Is this APP working with the Homey v2? Because when i open de http request it canât find my homey anymore. Iâm not using the whitelist and using the extern url/cloud connection.
Hi All,
I try to change the status of an item in openhab. I tested this successfully in openhab with the following command:
curl -X PUT --header âContent-Type: text/plainâ --header âAccept: application/jsonâ -d âONâ âhttp://192.168.178.55:8080/rest/items/check_in/stateâ
Is there a way to build this into an homey action card?
I believe, I got stuck because openhab requires a plain text type.
thanks in advance
Perhaps a âPOST formâ card with the following string as URL (and as value just âONâ):
{"method":"put","protocol":"http:","hostname":"192.168.178.55","port":8080,"path":"/rest/items/check_in/state","headers":{"content-type":"text/plain","accept":"application/json"}}
Reading this: https://community.openhab.org/t/http-binding-using-put-methods/38793 I think openhab also accepts json, so something like {âstateâ: âONâ} on endpoint http://192.168.178.55:8080/rest/items/check_in
Thanks Robert and ErikâŚI tried both solutionsâŚboth didnât work.
Robert: I tried your string as URL value on a POST form card and I got a reply âCannot read property âindexOfâ of nullâ. Altered a few things, but no results
{âmethodâ : âputâ , âprotocolâ : âhttp:â , âhostnameâ : â192.168.178.55â , âportâ:8080, âpathâ : â/rest/items/check_in/stateâ , âheadersâ : {âcontent-typeâ : âtext/plainâ , âacceptâ : âapplication/jsonâ}} and a value of {âONâ}
Erik: I tried the PUT json card and all responses were 400
Any other suggestions?
Sorry for the bolt text⌠worked partly on desktop and mobile⌠text entered on the desktop and send by molbile seems to become bolt
I donât think {âONâ}
is a valid value. Either try ON
, "ON"
or {"state":"ON"}
(and literally those values, not with fancy quote characters).
Unfortunatly all those values âONâ, ON and {âstateâ:âONâ} didnât work.
There is also a working post request to change an item in openhab. Is this request doable?
curl -X POST --header âContent-Type: text/plainâ --header âAccept: application/jsonâ -d âOFFâ âhttp://192.168.178.55:8080/rest/items/check_in?api_key=Websocket&api_key=Websocketâ
Thanks in advance
I have an issue with triggers. This is my setup:
Trigger âtBatteryJSON2â never gets triggered:
Any idea how to get âtBatteryJSON2â triggered?
Hi @gagga. What is the response you get from âhttp://sonne.publicinsight.de/api/v1/statusâ? That uri does not work when I request it.
sonne.publicinsight.de resolves to an internal IP address in my network (192.168.1.10). So it wonât work for you.
From the internal network I get:
{âBatteryChargingâ:false,âBatteryDischargingâ:true,âConsumption_Wâ:695,âFacâ:50,âFlowConsumptionBatteryâ:true,âFlowConsumptionGridâ:true,âFlowConsumptionProductionâ:false,âFlowGridBatteryâ:false,âFlowProductionBatteryâ:false,âFlowProductionGridâ:false,âGridFeedIn_Wâ:-35,âIsSystemInstalledâ:1,âPac_total_Wâ:620,âProduction_Wâ:0,âRSOCâ:12,âTimestampâ:â2019-05-06 22:11:57â,âUSOCâ:7,âUacâ:224,âUbatâ:51}
Unfortunantly thatâs an invalid JSON structure. It uses the wrong type of quotes (check it with https://jsonformatter.curiousconcept.com/)
There seems to be an issue with this forum software. If I copy the original output it is verified correctly:
Ok, thats kind of a relieve :).
Are you sure the second flow is enabled?
Can you run flow 1 manual and trigger the âsend diagnostic report to developerâ? I then will have insight in executed requests, returned responses and the jsonPath processing.
Yes. All 3 flows are enabled.
Diagnostic report id: 3ba3d16f-9a93-4a32-b728-4e1b7e0bc7dc
FYI: todayâs Homey update to versions 2.1.2 did not change the trigger behaviour.
I found the bug and fixed it in version 2.0.10, which is now awaiting approval in the app store.