fabik
(Fabik)
1
Hello,
Would you please help how to execute “this” under the HA.io (probably through RESTful API - but it doesn´t work, with curl or HTTP Google Chrome it´s OK).
http://192.168.0.1/TecoApi/SetObject?svetlo1=true
etc…
The goal is to turn on/off the switches on the remote PLC through API and get some parameters like temperature, watter level etc.
Thank you,
Martin.
3 Likes
matejsimek
(Matej Simek)
2
I think you need to provide some sort of Authentication. TecoApi manual says it supports:
- Basic Access Authentication
- Digest Access Authentication
And the rest_command supports HTTP authentication
fields which I would guess are the Basic Authentication method above…
Did you have luck with your solution?