Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

AxialControl: Home Automation Server (Formerly InControl)

Questions and comments specific to a particular plugin should go here.
Post Reply
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

AxialControl: Home Automation Server (Formerly InControl)

Post by yokel22 »

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.

** added v1.0.1: fix a dumb bug stopping macro from proceeding. **
Attachments
AxialControlHA.egplugin
AxialControlHA v1.0.1
(11.18 KiB) Downloaded 132 times
AxialControlHA.egplugin
AxialControlHA v1.0
(11.19 KiB) Downloaded 128 times
Last edited by yokel22 on Thu May 04, 2017 3:31 pm, edited 2 times in total.
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: AxialControl: Home Automation Server (Formerly InControl

Post by yokel22 »

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
Event usage Example
Event usage Example
Last edited by yokel22 on Wed Feb 01, 2017 12:23 am, edited 2 times in total.
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: AxialControl: Home Automation Server (Formerly InControl

Post by yokel22 »

This is a simple web app that uses this plugin and the webserver plugin. It still has a few small bugs to fix but is in pretty good working order if anyone feels like playing around with it. There are a few screenshots attached at the bottom of this post.

Step 1:
You will need version 1.0 or higher installed of the AxialControlHA plugin.

Step 2:
Open the attached eventghost tree.

Step 3:
Configure the AxialControl plugin with your server credentials. Also enable Event polling, i usually set my polling time to 5 seconds.
AxialControlHA config
AxialControlHA config
Step 4: Configure the Webserver plugin to point to the supplied html folder. Also set your prefferred port to run the webserver off of. (Note: if you experience any errors with the webserver plugin. Update to the newest version here: viewtopic.php?f=9&t=1663)
Webserver Config
Webserver Config
Step 5: Load the webpage in your prefferred web browser(Your PC's ip that runs EG and the port set in the webserver plugin. Example: 127.0.0.1:8099). You can run this in fullscreen on chrome by saving the link to desktop and choosing open in window.
Axial home
Axial home
Axial switches
Axial switches
Axial dimmers
Axial dimmers
Axial Sensors
Axial Sensors
Attachments
AxialControlHA WebApp.zip
AxialControlHA Web App HTML files
(2.99 MiB) Downloaded 109 times
AxialControlHAwebTree.xml
AxialControlHA Web App EventGhost Tree xml
(28.98 KiB) Downloaded 113 times
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: AxialControl: Home Automation Server (Formerly InControl)

Post by kgschlosser »

Here is an updated index.html to handle images not properly loading when viewing the file as a local file in a browser.
Attachments
index.zip
(3.2 KiB) Downloaded 34 times
If you like the work I have been doing then feel free to Image
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: AxialControl: Home Automation Server (Formerly InControl)

Post by yokel22 »

Cool, I'll update the file in the zip. Just out of curiosity.
What did you add?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: AxialControl: Home Automation Server (Formerly InControl)

Post by kgschlosser »

it's what i removed..

the "/" before all of the image paths.
I am sure that is the correct thing to do. give it a test first to see.
If you like the work I have been doing then feel free to Image
Post Reply