This would be my second post on HA forum and I really hope that Gurus here will be able to assist me on my this issue as well as that did to my first one.
I am Using HA with a Z wave socket (connected to Veralite) to provide power to my speakers. I am also using MQTT to control my sonoff device. Both these devices succcessfully show up under HA dashboard.
Now on Mobile I am using Imperihome to controll both my these devices. z wave shows by default, but for MQTT sonoff device the only way to have it on Imperihome is via HTTP req that via RestFULL API.
Here is the scenario …I DID MANAGE to control the device via below HTTP API command.
Since both the devices are switch type the entity ID is “switch”. For some reason, my Network and Rpi HA devices got rebooted. When things came back EVERYTHING worked as it should EXCEPT the above API HTTP command NOW switches BOTH the devices. Even though the Device ID for both are different
switch.bedroom_light
switch.bedroom_speakers_5
I DONT know what happened, but now the above API is not working as it should. Hair Pulling thing is…the same API HTTP command was WORKING perfectly before that reboot happened.
I have tried restarting …veralite, HA on Rpi, my sonoff. everything I HAVE NO IDEA what has gone wrong.
Is there no one who can assist me on this ,…??? Its really irritating, when both the devices start when I only want to switch on one ?? Please assist
I changed a few things and now I am facing a new issue…
I thought maybe I do not have HTTP password set in YAML file, it might be the reason, so I set the api_password in my YAML file…I supplied the below url to it.
“Login attempt or request with invalid authentication from 192.168.88.116”, which is STRANGE, coz if the authentication was the issue it would have failed when I passed the url WITHOUT JSON parameters.
Thanks for the assistance anyway,wish I can solve this. Its the only last link pending in my complete ROOM automating
Also phileep. coming to original issue, the entity id is correct, have quadraple checked … the command is working in Postman chrom extension, BUT not as a single URL, if I pass the url like below
The problem is Imperihome does not have the abillity to insert BODY, it only gives me the option to put URL and choose GET or POST. Else it might have worked. Looks like I have to start looking for alternative of Imperihome (But as far as i Know there isnt)…
Then I thought of the password things and there when I tried as explained in the above post, I am facing another new issue of authentication failure …
HA does not have an Android App … Imperihome has a very nice app with an intuitive dashboard that looks awsome. Plus is can incorporate different automation devices. HA you can only set it as a browser shortcut and it looks very ordinary. HA is good for other things but as a stand alone dashboard for TAB, Imperihome is much better (untill now I guess when I cannot make ti work for simple POST HTTP API)…
BUT if it aint working it aint working so I cannot crib about it much … can you suggest how to use HADashboard, the article on HA just gives an introduction, and no info as to how to get started with it …
there is a new HADashboard.
and with that you can create your own skins to let it look just like your app.
maybe not all options are there but its still being developed.
I would like to create my own DashBoard, since HA Dashboard is also running on a webserver and can be accessed via browser. I wouldl ike to try creating my own dashboard via Home Assistant Server Sent Event if you willaccess the link I provided I went through the installation as directed, but when I try to access the URL http://[your_hass_host]:8123/local/index.html it gives me 404: Not Found error. ANY IDEA?
nope, sorry i am absolutely not familair with that part. ( icould imagine that you also need to provide your HA password)
this is just a small part which enables you to create your own frontend part, but as far as i see it it hasnt even an option for switches.
i would advise you to use the HADashboard i pointed you to.
it is way more flexible and a lot better supported
I’m not sure Dash is going to be the proper solution for him as it is designed to run locally on the LAN where his app is mobile and works outside his LAN.
i already told you. just do an ordinairy NGINX install (intructions on the NGINX website)
its really nothing else then any other installation.
configuring after that is just a copy from my configuration.
I managed to solve it. Big thanks to ih8gates member who point me towards IFTTT.
I created an event in IFTTT and in the “then” part connected it to the web request,
IFTTT was already added to YAML file with the KEY. Then was just a matter of passing the below URL
and that switched on the Lights and only lights and not the speakers. I provided the same URL in Imperihome and IT WORKED!!!
The only tiny complaint is that its bit slow, I mean its takes 1-2 seconds after the button is pressed, Plus I cannot use local IP from IFTTT, I had to use DDNS and fw the HA IP, which I personally did not want to, but if that’s the only way to solve this so be it … I am happy. …