Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Jazzik

Pages: [1]
1
XML Exchange / WeMo Lights (Bridge)
« on: December 29, 2014, 05:07:30 AM »
Hey Guys,

*added for clarity -  I bought one of these http://www.belkin.com/uk/p/P-F5Z0489/ and found it was not compatible with the WeMo plugin, due to it not having a switch. After a bit of messing around a friend and I worked out whats being sent to the WeMo bridge in order to control the lights that arent on WeMo switches

This is the xml for controlling a single bulb, i have also attached my payload as the value to control the brightness is between 0-255

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.7-->
<commandGroup open="True" name="WeMo - Lights" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="772" name="Dim Lights" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Scrape.Post</cmdType>
      <params>
        <param>http://192.168.0.19:49153/upnp/control/bridge1</param>
        <param>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;&lt;s:Body&gt;&lt;u:SetDeviceStatus xmlns:u="urn:Belkin:service:bridge:1"&gt;&lt;DeviceStatusList&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;lt;DeviceStatus&amp;gt;&amp;lt;IsGroupAction&amp;gt;NO&amp;lt;/IsGroupAction&amp;gt;&amp;lt;DeviceID available=&amp;quot;YES&amp;quot;&amp;gt;94103EA2B27844D2&amp;lt;/DeviceID&amp;gt;&amp;lt;CapabilityID&amp;gt;10008&amp;lt;/CapabilityID&amp;gt;&amp;lt;CapabilityValue&amp;gt;{1}:0&amp;lt;/CapabilityValue&amp;gt;&amp;lt;/DeviceStatus&amp;gt;&lt;/DeviceStatusList&gt;&lt;/u:SetDeviceStatus&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;
        <param />
        <param />
        <param>text/xml; charset="utf-8"</param>
        <param>SOAPAction: "urn:Belkin:service:bridge:1#SetDeviceStatus"</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase optional="true">set,dim</phrase>
    <phrase>lights</phrase>
    <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">lights.xml</payloadFromXML>
    <phrase optional="true">percent</phrase>
  </command>
</commandGroup>


Some things you will need to change:
94103EA2B27844D2, this is your UDN (Unique Device Number) for each bulb, which can be gotten through the WeMoManager app.

The IP and Port will need to change as applicable to you. Have found that the bridge can use one of three ports so may be worth factoring that in aswell. (49154,49153,49152).
Everything between the <Device Status> tags can be duplicated in a single command to allow the same command to control more than one light. For example, my current command for controlling both of my lounge lights looks like this:


Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.7-->
<command id="772" name="Dim Lights" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape.Post</cmdType>
    <params>
      <param>http://192.168.0.19:49153/upnp/control/bridge1</param>
      <param>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;&lt;s:Body&gt;&lt;u:SetDeviceStatus xmlns:u="urn:Belkin:service:bridge:1"&gt;&lt;DeviceStatusList&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;lt;DeviceStatus&amp;gt;&amp;lt;IsGroupAction&amp;gt;NO&amp;lt;/IsGroupAction&amp;gt;&amp;lt;DeviceID available=&amp;quot;YES&amp;quot;&amp;gt;94103EA2B27844D2&amp;lt;/DeviceID&amp;gt;&amp;lt;CapabilityID&amp;gt;10008&amp;lt;/CapabilityID&amp;gt;&amp;lt;CapabilityValue&amp;gt;{1}:0&amp;lt;/CapabilityValue&amp;gt;&amp;lt;/DeviceStatus&amp;gt;&amp;lt;DeviceStatus&amp;gt;&amp;lt;IsGroupAction&amp;gt;NO&amp;lt;/IsGroupAction&amp;gt;&amp;lt;DeviceID available=&amp;quot;YES&amp;quot;&amp;gt;94103EA2B2786628&amp;lt;/DeviceID&amp;gt;&amp;lt;CapabilityID&amp;gt;10008&amp;lt;/CapabilityID&amp;gt;&amp;lt;CapabilityValue&amp;gt;{1}:0&amp;lt;/CapabilityValue&amp;gt;&amp;lt;/DeviceStatus&amp;gt;&lt;/DeviceStatusList&gt;&lt;/u:SetDeviceStatus&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;</param>
      <param />
      <param />
      <param>text/xml; charset="utf-8"</param>
      <param>SOAPAction: "urn:Belkin:service:bridge:1#SetDeviceStatus"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase optional="true">set,dim</phrase>
  <phrase>lights</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">lights.xml</payloadFromXML>
  <phrase optional="true">percent</phrase>
</command>

2
Vera Home Automation Controller / VeraLite (Wrong IP in plugin?)
« on: December 27, 2014, 08:36:27 PM »
Hey Guys,

Got my VeraLite for christmas, been having some fun and games with it. Finally got it stable with the rest of my network (was having a hissy fit throwing out UDP all over the place and my Onkyo didnt like it.)

I've just installed the vera plugin for VC 2.1.0.7. Interestingly its finding my vera at 192.168.0.21:3840

However, that device doesnt even exist on my network, my vera is at 192.168.0.11

Any ideas as to what may be causing this?

3
Hiya,

My VC is working brilliantly for the latest XBMC (Kodi), Play Song, Play Movies, Browse Artist.. all perfect.

Play Artist (name) however does not play songs. Despite getting the TTS response saying "Spinning Up Tunes By (name).

The music doesnt actually start. I've checked my payload it has all of the artists listed, have the addon installed and everything else in my library is working flawlessly.

Any thoughts or advice for things to try appreciated.

4
Integration Ideas / Greetings - Currently building Dave!
« on: December 17, 2014, 06:08:58 AM »
Hi All,

First off props on an amazing app! Played with the trial for about 10minutes before deciding I needed this in my life.

Currently working on simulating an AI called Dave! He'll currently happily control my xbmc, hue lights and Onkyo with combined commands, still not having much luck with the TiVo but I've found the thread so there must be a way! - Getting myself a Vera and Roomba for christmas, so hopefully itll grow into an amazing system, waking me up in the mornings with the latest news and weather, put the kettle on and do the cleaning while I'm out!

Duno how thats going to work out, probably some kind of tasker integration, need to get my hands on the roomba and vera first! Not really played with RoboBrowser much, be interesting to see if I can do some kinda of Google Now integration too.

This post isnt without its questions though, just wondering now that the official kinect 2.0 pc adapter has been announced will there be any work done to integrate this with VC like the first one? The microphone on it is brilliant. I'd also like to know whether anyone has successfully utilise numerous open microphones in different rooms, or is it more likely that I'll need to have seperate PC's/Android devices in different rooms.

Pages: [1]