Thank you both. That’s excellent and I’ve now got a toggle button to turn it on. I just need to work out how to change the button to a sliding one that provides status, it is just a touch button at the moment. I’ve also added the power so can see it in real time.
Well, if you could read out the current state, you could set a variable and adjust the slider through a rule.
Just need a shell sensor that cURL’s the state, then set a variable based on that and change the switch based on the variable.
@Nathan-Quick adding a device is kinda the same as adding it through the config.json. Apart from using a GUI that is.
I dont own the device, but you say the switch has a webpage.
We can use cURL for that.
After reading abit, i think your power on url is;
And power off is:
Lets add it;
Create a new device, a shellswitch device.
Name and id can be anything.
As on command, do;
sudo curl -s http://yoursonoffipaddress/cm?cmnd=Power%20on
And as off command, do;
sudo curl -s http://yoursonoffipaddress/cm?cmnd=Power%20off
Ofc, replace “yoursonoffipaddress” with the sonoff ip address.
That should be it.
Ah, the POW also measures voltages etc so it has a status page. If you could copy that here and if you want to display voltage, i need that page info.
So please navigate to
http://sonoffpowipaddress/cm?cmnd=Status%208and show me what it displays
@shgmongo please dont double post.
If you want correct answers it is best to keep posting on your main thread.
@shgmongo you have DE.
Please read this page, set timezone part.
@shgmongo i dont know anything about docking so i cant tell. The 2 hours difference are normal. Cant tell why pimatic is using another locale. What did you set in your config?
10:51:22 info [pimatic-cron]: the time is: Sat Aug 19 2017 10:51:22 GMT+0200 (CEST)
Mine adds 2 hours correctly. I think you didnt set the locale right.
Go to menu - configuration and paste your settings part on the top.
@tehmilcho does it have a playstore or something?
Yeah, thats ADB. However, you only need terminal access, so if you have a playstore or something, try installing a terminal application.
When you have that, try this command from that terminal:
Do you get data?