HTTPrequest from Automagic on Android
Posted: Wednesday 29 March 2023 13:21
Since Domoticz 2022.2 I had problems connecting to Domoticz with Dataplicity. Since version 2023.1 the problem has disappeared
, but not completely. I have flow in Automagic4Android on a mobile phone and send HTTPrequset post from it. Unfortunately, it does not reach Domoticz. I've read a lot about Auth-basic (I have it turned on in Domoticz) and Settings->Applications - unfortunately I don't know what and how to enter so that commands from the mobile phone are handled by Domoticz.
Below is the log from the execution of flow by Automagic:

Below is the log from the execution of flow by Automagic:
Code: Select all
29.03.2023 12:31:15.903 [_Flow1] Starting to execute flow '_Flow1' with Context{global{global_volume_music=12,global_wyslane=0},local{flow_name=_Połączenie z siecią domową,trigger=Manual,triggertime=1680085855882}}
29.03.2023 12:31:15.904 [_Flow1] Start executing action 'HTTP Request: POST https://***-***-***.dataplicity.io/json.htm?type=command¶m=switchlight&idx=154&switchcmd=On&level=0 application/x-www-form-urlencoded Lastname=XYZ,Firstname=ABC store in response'
29.03.2023 12:31:15.906 [_Flow1] Action 'HTTP Request: POST https://***-***-***.dataplicity.io/json.htm?type=command¶m=switchlight&idx=154&switchcmd=On&level=0 application/x-www-form-urlencoded Lastname=XYZ,Firstname=ABC store in response' url = https://***-***-***.dataplicity.io/json.htm?type=command¶m=switchlight&idx=154&switchcmd=On&level=0
29.03.2023 12:31:15.907 [_Flow1] Action 'HTTP Request: POST https://***-***-***.dataplicity.io/json.htm?type=command¶m=switchlight&idx=154&switchcmd=On&level=0 application/x-www-form-urlencoded Lastname=XYZ,Firstname=ABC store in response' formFieldList = Lastname=XYZ,Firstname=ABC
29.03.2023 12:31:15.908 [_Flow1] Action 'HTTP Request: POST https://***-***-***.dataplicity.io/json.htm?type=command¶m=switchlight&idx=154&switchcmd=On&level=0 application/x-www-form-urlencoded Lastname=XYZ,Firstname=ABC store in response' variable = response
29.03.2023 12:31:15.908 [_Flow1] Action 'HTTP Request: POST https://***-***-***.dataplicity.io/json.htm?type=command¶m=switchlight&idx=154&switchcmd=On&level=0 application/x-www-form-urlencoded Lastname=XYZ,Firstname=ABC store in response' encoding =
29.03.2023 12:31:17.006 [_Flow1] Action 'HTTP Request: POST https://***-***-***.dataplicity.io/json.htm?type=command¶m=switchlight&idx=154&switchcmd=On&level=0 application/x-www-form-urlencoded Lastname=XYZ,Firstname=ABC store in response' URL data fetched successfully.
29.03.2023 12:31:17.008 [_Flow1] End executing action 'HTTP Request: POST https://***-***-***.dataplicity.io/json.htm?type=command¶m=switchlight&idx=154&switchcmd=On&level=0 application/x-www-form-urlencoded Lastname=XYZ,Firstname=ABC store in response'
29.03.2023 12:31:17.024 [_Flow1] Flow ended.