VoxCommando
New Features and Feature Requests => Feature Requests => Topic started by: rio14 on February 20, 2016, 04:45:38 AM
-
hi i received an orvibo socket i need to operate it with VC , i have the ip, port used is 10000 and 48899
i found some information may help developpers
python-orvibo : https://github.com/happyleavesaoc/python-orvibo
java : https://github.com/Grayda/ninja-allone/blob/master/lib/allone.js
https://community.openhab.org/t/ir-blaster-home-automation-wiwo-orvibo-s20/4062/10
How to send commands to disable / enable Orvibo S20 Smart WIFI Plug.
The tests use S20 Smart WIFI Plug in a while that Plug Power is capable of Control on / off as well, but the Control to use the IOS and Android can not be activated via Computer if maybe we. Conditions need to turn on / off can be operated from a computer is very good. I try to find a way to find Web Control S20 Andrius. Štikonas most talented Reference and Information Packet began to write their own programs to be prepared to go Home Automate
Begin
The function of the applications we are interested.
* Open / Close Plug
* Pull Plug the status of what is now a state.
Job Description
S20 will receive UDP Port number 48 899 and 10 000 orders for the program by 48 899 will be part of the Discovery of the S20 and Port 10000 will transfer Command.
From Socket said the orders are to be numbered Mac Address all queries, we need numbers Mac's S20 but will allow customers to enter the Mac would not have to start by sending commands to the Port. Get a Mac before, to 48 899
To find the Mac address
He that sent Command " HF-A11ASSISTHREAD "ASCII to 255.255.255.255 Port 48899 all in the S20 system will respond. IP, MAC, HOSTNAME back, but we want just one. We will send the IP address of the S20 that we want to represent. It has come out as IP, MAC, HOSTNAME But by cutting out part of the MAC.
thank you
-
this is windows application to control orvibo s20
http://doityourselfchristmas.com/forums/showthread.php?38837-110-240V-AC-WIFI-S20-Timer-Windows-Application-for-free-to-use&s=b3b8b4b0e43818f76ca6b7cfe125551c
video https://www.dropbox.com/s/o67ghmro82wiqll/S20%20Introduction%20Video.avi?dl=0
TESTED AND WORKS
-
hi
may the information in this site useful
https://www.oiepoie.nl/2015/10/04/cheap-wifi-switch-orvibo-wiwo-s20/
-
Hi Rio,
I don't have a lot of free time to fool around with every new device that comes out but if you want to send me a device to play with I will see what I can do with it. I don't think I can be of much help to you unless I have something to experiment with.
Once you are up and running I can also ship the device back to you if you pay for the shipping.
-
hi James,
thank you for your answer, with pleasure I send you the device. and it's a shame you send it back to me.
the information on the sites are open for all people. i'm waiting for your adress thank you for your help :)
-
Hi Rio14,
How many Orvibo switches do you still have?
Are they all the same type?
Can you tell me their mac addresses? You can send me the info privately if you prefer.
-
HI james
i bought just this one to see if it works with VC, but i think that's difficult to get it work.if there is a solution i buy others , if not i will buy wemo socket, as you see the photo the mac sticker is inside the socket(its photo from internet).
the easier way ,is it possible VC send a commande to the windows application to turn it on and off.
https://www.dropbox.com/sh/99ew428bd6y2rn8/AADJ9AxFbvULry_ZpZBt-yUia?dl=0
thank you
-
I don't think it's possible to control either of the programs that you linked to.
However, I believe I have found a simple way to turn Orvibo switches on and off using VC. You only need to know the Mac Address of the switch.
I was hoping that you had some more switches with you so that you could help me test how reliable this method is.
It is also possible to generate events when any light turns on or off and to automatically get a list of all the switches etc. but in order to do that I would need to create a special plugin which would be quite a bit of work.
Personally I think these switches are much better than the Wemo switch, which is really not worth the price they are charging. The advantage of Wemo is that they sell an in wall switch which is much more useful to most people who really want to integrate automation into their actual homes while still being able to control lights manually.
-
Thought I would let you know I ordered a couple of these from aliexpress sense they where on sale this weekend for $9.42 US but it says it can take 39-90 days to get them in (already said they shipped though), When I get them in I'll let you know so I can help test your mac address Idea
-
Lucky you, they are back up to $21.50
-
if you haven't ordered them yet this is the same listing I ordered mine from and they have it for $18.24 US
LINK NO LONGER WORKED
-
I got the two Orvibo Sockets in a couple days ago, what do you need so we can test them out
-
First I think you need to set up the switches to work on your network wifi etc.
Then, you can adapt these commands using your mac address. You can probably use arp -a or your router to get the mac address for each socket.
My Orvibo switch has a mac address of AC:CF:23:35:CF:8C
Here are sample on and off commands using UDP
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.7-->
<commandGroup open="False" name="orvibo test tcp udp" enabled="True" prefix="" priority="0" requiredProcess="" description="">
<command id="208" name="turn on" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>TCP.UDP.SendMixed</cmdType>
<params>
<param>\x68\x64\x00\x1E\x63\x6C\xAC\xCF\x23\x35\xCF\x8C\x20\x20\x20\x20\x20\x20\x8C\xCF\x35\x23\xCF\xAC\x20\x20\x20\x20\x20\x20</param>
<param>10000</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Pause</cmdType>
<params>
<param>200</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TCP.UDP.SendMixed</cmdType>
<params>
<param>\x68\x64\x00\x17\x64\x63\xAC\xCF\x23\x35\xCF\x8C\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x01</param>
<param>10000</param>
</params>
<cmdRepeat>2</cmdRepeat>
</action>
</command>
<command id="222" name="turn off" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>TCP.UDP.SendMixed</cmdType>
<params>
<param>\x68\x64\x00\x1E\x63\x6C\xAC\xCF\x23\x35\xCF\x8C\x20\x20\x20\x20\x20\x20\x8C\xCF\x35\x23\xCF\xAC\x20\x20\x20\x20\x20\x20</param>
<param>10000</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Pause</cmdType>
<params>
<param>200</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TCP.UDP.SendMixed</cmdType>
<params>
<param>\x68\x64\x00\x17\x64\x63\xAC\xCF\x23\x35\xCF\x8C\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00</param>
<param>10000</param>
</params>
<cmdRepeat>2</cmdRepeat>
</action>
</command>
</commandGroup>
So for each command there are two places where you will need to replace my Mac address with yours.
\x68\x64\x00\x1E\x63\x6C\xAC\xCF\x23\x35\xCF\x8C\x20\x20\x20\x20\x20\x20\x8C\xCF\x35\x23\xCF\xAC\x20\x20\x20\x20\x20\x20
-
IT WORKS :yay
I had to change the Mac address in 3 places
the first action in both commands, it is listed twice once in the correct order and later in the line it is reversed like so
\x68\x64\x00\x1E\x63\x6C\xAC\xCF\x23\x35\xCF\x8C\x20\x20\x20\x20\x20\x20\x8C\xCF\x35\x23\xCF\xAC\x20\x20\x20\x20\x20\x20
and then once in the Third action
in the turn off command, there where Forum Bold tags ( [ B],[ /B] I added the space so they would show up) around the Mac address in the third action
From the testing I have done it seems that these have a faster response time then the WeMo's do, even notifying the app it shows the Status change must faster,
I Tested the commands on two of the Orvibo S20 Sockets and it works every time
Great Work
-
Good news. Thanks for testing this out.
-
Yes. Sorry about that. I knew about the existence of a reversed Mac address but I thought it was only used in a different discovery message that I was playing with when investigating creating a plugin. I guess I scanned the parameter too quickly and missed it, thinking it was all padding space characters. It is possible to create a plugin that will find all the sockets and even generate events. I'm just not sure if I want to spend the time necessary to do it.
Anyway I'm glad it was you that was testing it so that you could find the solution yourself. I hope it did not take you too much time.
in the turn off command, there where Forum Bold tags ( [ B],[ /B] I added the space so they would show up) around the Mac address in the third action
That explains what happened the first time I tried to bold something and then wondered why it didn't work :bonk
I'll update the original post so others that copy the command won't get stuck by it.
-
Anyway I'm glad it was you that was testing it so that you could find the solution yourself. I hope it did not take you too much time.
honestly I was surprised at how fast I found it, ;)
-
You must have had "a beautiful mind" moment.
-
Good job Mr thank's a lot