Well, I know its against RFC, and not one of those known to be private ip addresses, but its very short ot use and sometimes i use mobile so 1.1.1.x is always fastest to write
This is the internal IP. my router is configured to subnet 1.1.1.0/24
You may want to change to either the 192.168.0.0 - 192.168.255.255,10.0.0.0 - 10.255.255.255 or 172.16.0.0 - 172.31.255.255 . subnets, as the ip addresses you are using are probably assigned to other users of the same isp. In other words 1.1.1.84 may be in use by your neighbour, or someone down the street. You are trying to access a computer that you don’t own.
What I do is alias ip addresses to names in my /etc/host file eg:
I don’t have anything running windows at the moment, but editing the hosts file in Windows works the same way, and if I remember correctly OSX has an /etc/hosts file.
I agree, but thats a general note (which I very much appreciate).
I will probably change that some other day, since its a mini operation
Meanwhile, its not really an issue, since it does the routing OK and so the only question left is why the switch doesn’t appear in the UI. Any thoughts on that one?
Could be several things, do you have a separate switches.yaml, if not can you just post the switches section of you configuration .yaml. Highlight the text when you paste it into your reply then click the </> icon so that the section is formatted properly, so that we can check the formatting.
I dont have any.
I took the restful switch example and posted it as-is, that is not enough?
I was under the impression it is (after configuring other stuff like google assistant and vera)
Do I need to take care of templating and other stuff as well?
I thought there is an easy way to make just a toggle button?
Is there a complete example to get me up in speed, and understand how it all works together?
Since I wrote the server which Im trying to communicate with, is there a preferred format for the API in order to get the state and the temperature readings?
Depending on how your server respond on webhooks.
In my case for request the temperature of my IoT, I must place a HTTP request like following; at my blynk server.
My server at the following webhook:
Im not not sure why.
Also, this is a regular nodejs http server, so rest platform suffice IMO.
my switch now appears in the UI, but the problem is that for some very odd reason, when using the 10.0.0.85 ip, which is the correct one to use and is where my nodejs server resides, I get the error: