AxialControl: Home Automation Server (Formerly InControl)

Questions and comments specific to a particular plugin should go here.

AxialControl: Home Automation Server (Formerly InControl)

Postby yokel22 » Fri Dec 30, 2016 6:13 am

This is a plugin for AxialControl Home Automation Server http://www.axialcontrol.com/. Right now it's just basic one way communication, but i plan on adding events in the next version. I've tested things pretty well but only on my system. If something isn't working properly, LMK.
Attachments
AxialControlHA.egplugin
AxialControl Plugin v.0.1.0
(10.2 KiB) Downloaded 6 times
yokel22
Experienced User
 
Posts: 70
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: AxialControl: Home Automation Server (Formerly InControl

Postby yokel22 » Sun Jan 22, 2017 1:26 am

Added Event Generation, Calling it v1.0. I plan on switching things over to a websocket connection when i can figure out the commands. But for the time being it's setup with a polling thread. This is optional and the polling time is configurable. It will generate event's in this format. "AxialControlHA.deviceName({'type': xxx, 'deviceID': 'xxx', 'value': 'xxx'}). I'm open to suggestion on the formatting of this but if you want to get the value for the event it can be parsed out like this:

deviceName:
Code: Select all
eg.event.suffix

deviceValue:
Code: Select all
eg.event.payload['value']

deviceType:
Code: Select all
eg.event.payload['type']

deviceID:
Code: Select all
eg.event.payload['deviceID']


Or you can do something like this in the screenshot(copy/paste this into your eg.tree):
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
    <Macro Name="Python Script" Expanded="True">
        <Event Name="AxialControlHA.*" />
        <Action>
            EventGhost.PythonCommand(u'print eg.event.suffix + " = " + str(eg.event.payload[\'value\'])')
        </Action>
    </Macro>
</EventGhost>
Attachments
AxialExample.jpg
Event usage Example
AxialControlHA.egplugin
AxialControlHA v1.0
(10.9 KiB) Not downloaded yet
yokel22
Experienced User
 
Posts: 70
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city


Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 2 guests