Author Topic: orvibo S20 WIFI socket  (Read 7979 times)

0 Members and 1 Guest are viewing this topic.

rio14

  • Contributor
  • ***
  • Posts: 59
  • Karma: 4
    • View Profile
orvibo S20 WIFI socket
« 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


« Last Edit: February 21, 2016, 01:03:56 AM by rio14 »

rio14

  • Contributor
  • ***
  • Posts: 59
  • Karma: 4
    • View Profile
« Last Edit: February 20, 2016, 09:08:51 PM by rio14 »

rio14

  • Contributor
  • ***
  • Posts: 59
  • Karma: 4
    • View Profile
Re: orvibo S20 WIFI socket
« Reply #2 on: February 21, 2016, 06:54:47 PM »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: orvibo S20 WIFI socket
« Reply #3 on: February 21, 2016, 07:00:46 PM »
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.

rio14

  • Contributor
  • ***
  • Posts: 59
  • Karma: 4
    • View Profile
Re: orvibo S20 WIFI socket
« Reply #4 on: February 21, 2016, 08:42:31 PM »
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  :)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: orvibo S20 WIFI socket
« Reply #5 on: February 28, 2016, 03:15:32 PM »
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.

rio14

  • Contributor
  • ***
  • Posts: 59
  • Karma: 4
    • View Profile
Re: orvibo S20 WIFI socket
« Reply #6 on: February 28, 2016, 11:53:37 PM »
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

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: orvibo S20 WIFI socket
« Reply #7 on: February 29, 2016, 11:15:04 AM »
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.
« Last Edit: February 29, 2016, 12:44:48 PM by jitterjames »

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: orvibo S20 WIFI socket
« Reply #8 on: February 29, 2016, 02:53:38 PM »
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

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: orvibo S20 WIFI socket
« Reply #9 on: February 29, 2016, 05:21:24 PM »
Lucky you, they are back up to $21.50

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: orvibo S20 WIFI socket
« Reply #10 on: February 29, 2016, 06:47:47 PM »
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
« Last Edit: March 19, 2016, 02:42:02 AM by PegLegTV »

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: orvibo S20 WIFI socket
« Reply #11 on: April 14, 2016, 12:03:37 PM »
I got the two Orvibo Sockets in a couple days ago, what do you need so we can test them out

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: orvibo S20 WIFI socket
« Reply #12 on: April 14, 2016, 01:17:28 PM »
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

Code: [Select]
<?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
« Last Edit: April 15, 2016, 11:24:53 AM by jitterjames »

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: orvibo S20 WIFI socket
« Reply #13 on: April 14, 2016, 04:15:44 PM »
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


nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: orvibo S20 WIFI socket
« Reply #14 on: April 15, 2016, 08:16:47 AM »
Good news. Thanks for testing this out.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)