@superkikim can you Check if my custom component work‘s on those devices also?
If this is the case I may submit the component.
Well. Good news…
I was able to test power on and power off of one of the sockets. It works correctly but from Developer Tools services only.
The state widget does not work. It seems it is not able to interpret the 511 command result. I’ll try to troubleshoot.
Can you please share the result of a 511 command in json format for your outlet ? Mine looks like this. I don’t undertsand why you divide watt by 1000.
{"response":511,"code":200,"data":{"watt":["40.41","41.11","39.02","3.48","2.43","33.79"],"amp":["29.9","30.8","30.4","6.7","4.6","20.3"],"switch":[1,1,1,1,1,1]}}
Also you should add a code test. If code is not 200, it should return an error.
Which state widget?
Well at the time I’ve written this component i didn’t know what code meaned. So I just ignored it.
My revogi strip publishes the watts as milliwatts, so you have to convert it. That’s why I divide it by 1000.
Just in case somebody wants to know how to add this component to config
- platform: revogi
host: 192.168.0.10
name: somename
I forgot that in my first post.
Well. When I speak about the “Widget”, I speak about the representation of the states on the frontpage
But now, I was able to make it work, by removing the division by 1000.
Also, it seems that Max Hauri has been more cautious on their requirement specifications. telnet and SSH servers are disabled, or at least they do not answer on port 22 nor 23, and traffic to the cloud website is encrypted. I will try a port scanner to see if the port is different. Also, I’ve been trying to find out where the APP find the name of the plugs. I was unable to find the command to get the names. What I see so far is that the 1st time the app is opened, there is a call to the cloud site, or, if internet is not available, to one of the power strip. My guess is that a file containing the latest list of devices is downloaded from the Power strip itself.
When connecting to the cloud site, a command 500 is sent, which returns the complete list of power strips, states, values, names, of all the devices registered on the network.
I hope I can find a way to access this file. This would be gorgeous to gather the complete list of sockets in the house, rather then query each strip separately, and without the names.
Beside of 200 and 511, did you identify more commands ?
I will share later tonight the list of commands I have identified.
Ok, I think that the max hauri version is quit different to the original one.
No I didn’t detect any other commands.
I posted a new article on my blog. Again in french, but it should be easy enough to understand or to translate using Google Translate:
Basically:
Cloud commands:
Login to MaxSmart Cloud
https://www.maxsmart.ch/services/ajax.html?cmd=101&json={"username": "[email protected]", "password": "password"}
Get MaxSmart device names and some details
https://www.maxsmart.ch/services/ajax.html?cmd=500&json={"dev": "all"}
Local commands:
Get MaxSmart cpuid, plcmac, plcdak, cloud server url
http://maxsmart-sandbox.fritz.box/?cmd=124
Set mac, sak, plcmac and plcdak. WARNING: Do not run EMPTY. It will delete the identifiers
http://maxsmart-sandbox.fritz.box/?cmd=122&json={"plcmac":"BC2BD712345","plcdak":"MLRM-ABCD-EFGH-GHVX","sn":"SWP6023002012345","mac":"BC:2B:D7:F3:4B:23","sak":"367123123453"}
Factory reset (does not restore identifies to originals if deleted with command 122)
http://maxsmart-sandbox.fritz.box/?cmd=120&json={"op":2}
Name port (0 = strip, 1-6, ports)
http://maxsmart-sandbox.fritz.box/?cmd=201&json={"port":0,"name":"Strip name"}
http://maxsmart-sandbox.fritz.box/?cmd=201&json={"port":3,"name":"Socket 3 name"}
Get power states and consumption
http://maxsmart-sandbox.fritz.box/?cmd=511
Command 124,122 & 120 doesn’t work on my Revogi strip
And maybe you have to be in an specific mode to get a telnet or ssh access.
I guess 120 122 and 124 are for OEMs. Allowing to overwrite identifiers for their own use.
For the rest, there are other commands that I know have a function but do not work without parameters. And I don’t know the parameters o_0
If I had time and need, I would put the plug behind a sniffer, or a sniffer behind my router to capture 100% of the traffic between the plug and the cloud.
No I didn’t, but i can’t test it because I didn’t create an account nor did anything with them.
Great. It means Cloud is not mandatory for setup. That’s a good news
I’m going forward on the script. I struggled for some days, because it was working very randomly, and even my wifi AP was hanging, until I realize it was due to one of the power strip being defect o_0
I have now added the support for single outlet plugs.
I will share my script when I have sorted out some other details.
well it sort of is. But if you did the steps of hacking the device, then you don’t need it.
If the strip is “unhacked” it has to bee connected to the internet and if it looses internet connection even if your lan or wifi is still working the strip reboots until it has a connection again.
I’ve created a git with the file I’m working on. Any help welcome.
I documented how to talk directly to the microcontroller operating the relays in the SOW323, maybe it helps:
That’s awesome!
I’m trying with socket/plug, I get no error in HA log, but if i try /?cmd=511 in chrome I get connection refused. I was on firmware 5.01, got updated to 5.06. Maybe I need some older firmware (maybe possible to downgrade with old app versions?) I know I had issue with strip where I needed to go trought several old app versions to get working firmware. But now I guess I need to downgrade. Or is there some trick to calling command 511?
I want to buy 3 strips to use on ethernet with hack above, but if newer firmwares are unusable as with the plug I don’t know how probable is success
Is there an update for this?it works on hassio?thank you
I have the Revogi SmartStrip UK Plug version SOW020, although not available in any online stores, I was able to get it by directly contacting their sales channel.
https://www.revogi.com/smart-power/smart-power-strip-uk/#section0
It is a very well built and capable piece of hardware, with its mobile app. Although reading above I understand if I login via revogi account, all communication and commands go via the cloud unencrypted. It has 4 ports/sockets and individual energy load monitoring on each socket.
Lots of informaiton is provided in this thread , i am bit confused how to start with integrating it with HA and what level of controls and information can be made available on HA.
Is it now natively supported by HA, or there a step wise guide to get it working with HA. I am running HassIO 0.84.6
Thanks.
So after a long absence I come back to the revogi strips.
It seems that revogi closed the local control function with newer firmware. The next (for me) breaking mandatory point is that they now also removed the ethernet plug on the newer strips.
So I’m now again on the search for smart strips with an ethernet connection.
@evlo yes you need the older firmware
@SFHasan no it’s not natively supported by HA and as I said earlier the component doesn’t work with the new firmware.