This object is in archive! 

Virtual Sensors - how to Access locally?

Robert Hercz shared this question 8 years ago
Answered

When creating a Virtual Sensor, the URL specified in the control center is "external", i.e. http-requests to the sensor is via the Zipato cloud.


The URL is as follows


https://my.zipato.com/zipato-web/remoting/attribute/set?serial=[Zipato device identifier]&apiKey=[virtual device identifer]&state


Does anyone know if it would be possible for me to make the same call internally in my own network only, i.e. by specifying the local IP address of the Zipabox?


Brgds

Robert

Replies (11)

photo
1

Definitely would be a great feature as it would help lower the cloud dependency and increase the reliability of the system.

photo
1

Exactly, good idea!

photo
1

I agree. Would be a great feature.

photo
1

I'm with you!

photo
1

Dear Guys,

This can be achieved in the local connection but the condition/events will not be registered inside the events tab.

An example:

http://ip:8080/v2/attribute , method PUT

body = {"value" : true}

or value false I case you want to turn it off

Best regards,

Pero Zovkic

photo
1

Hi,


any update on this one.

I am trying a local access but no luck.


I can get execute PUT request for

http://<zipaboxlocalip>:8080/zipato-web/v2/attributes/<attribute-UUID>/value

but i am getting HTTP 401 Unauthorized


{

"success": false,

"error": "Not Authenticated"

}


What is correct URL for local virtual sensors access?

photo
photo
1

Awesome, I will give it a try.

photo
1

Alberto, Let me know once you find out. This is awesome. Now together with some script I can increase the reliability of sensor for daytime or night...

photo
1

i did not get this to work. would be great if it would tho..

might be doing somthing wrong, anyone can post a full exemple ?


Would be greatfull since i run both zipabox and domoticz and using calls between them. Somtimes its slow due to cloud communication


//nicklas

photo
2

Hmm,

I cannot make it to work. What I did;

1. Created a virtual sensor called "TestSensor" in my zipatile.

2. Extracted the remote link using Zipato API

3. Created a rule that sent me an email (I'm having issues with push notifications) whether the sensor goes active or inactive.

4. Tested the rule and the link directly through my web browser changing states from true to false and viceversa. Everything worked, I got my emails.

5. Went to zipabox and created a rule using HTTP action puzzle as follows

Method: PUT

URL: http://MyZipatileIP:8080/v2/attribute/set?serial=MyZipatileSerial&ep=MyDeviceIdentifier&apiKey=MydeviceAPIKey&state

Body: {"value" : true} or {"value" : false}

For obvious reasons I replaced my ZT/device addresses and identifiers. But this didn't work, I'm pretty sure I'm using the right IP since it is shown on Zipato Web UI.

Pero, can you tell me if I'm doing something wrong?

photo
1

Has anyone managed to get Direct Access to work?

If so, please describe how...

photo
1

Any update if anyone managed to get locall access working?


Thanx,

D

Leave a Comment
 
Attach a file