SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-11-2010, 09:23 AM
Moskus's Avatar
Moskus Moskus is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 223
Smile Home automation: In need of a developer (it should be rather easy)

I'm writing a plugin for HomeSeer that uses the Nielm webserver plugin so that HomeSeer can control SageTV and it's clients.

However, I would love to be able to make it possible the other way around: SageTV could control HomeSeer!


And I've twisted my brain in order to figure out a way to do this. And since I'm no java-programmer (I know just VB.net and some C#), I have to resign and hope that others will help me.

But I also have an idea: Nielm has made 90% of this plugin already, and I'm thinking of the Dynamic Customisable Menu plugin. If I create a plugin for HomeSeer that exports/creates a XML-document of all devices, the plugin could read it and create the menus for it. All this could be made available in a new menu item.


The XML something like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Setup> <!-- The setup can of course be stored somewhere else, of course in an ini file -->
    <Title>Someone's Home Automation Plugin</Title>
    <User>Magnus</User>
    <Password>something</Password>
    <BaseUrl>http://10.0.0.1:81/</BaseUrl>
</Setup>
<Devices>
    <Group name="Favourites">
        <Device name="Living room">
            <Status>ON</Status>
            <Code>A2</Code>
            <Image>images/on.gif</Image> <!-- To be completed with the "BaseUrl" -->
            <Actions>
                <Action name="On" url="control.aspx?device=A2&action=2"> <!-- & BaseUr l-->
                <Action name="Off" url="control.aspx?device=A2&action=3"> <!-- & BaseUrl -->
                <Action name="10%" url="control.aspx?device=A2&action=4&level=10"> <!-- & BaseUrl -->
                <!-- [*snip*] -->
                <Action name="90%" url="control.aspx?device=A2&action=4&level=90"> <!-- & BaseUrl -->
            </Actions>
        </Device>
        <Device name="Living room">
            <!-- [*snip*] -->
        </Device>
    </Group>
    <Group name="1. Floor">
        <Group name="Master bedroom">
            <Device name="Lamp by bed 1"><!-- [*snip*] --></Device>
            <Device name="Lamp by bed 2"><!-- [*snip*] --></Device>
            <Device name="Ceiling light"><!-- [*snip*] --></Device>
        </Group>
        <Group name="Childrens bedroom">
            <Device name="Lamp by bed 1"><!-- [*snip*] --></Device>
            <Device name="Ceiling light"><!-- [*snip*] --></Device>
        </Group>
        <Group name="Bathroom">
            <Device name="Ceiling light"><!-- [*snip*] --></Device>
        </Group>
    </Group>
    <Group name="2. Floor">
        <Group name="Kitchen"><!-- [*snip*] --></Group>
        <Group name="Office"><!-- [*snip*] --></Group>
        <Group name="Living room"><!-- [*snip*] --></Group>
    </Group>
</Devices>
Then we will of course have to use the exsisting Dynamic menu plugin to add this to the menus.
Selecting this menu item will open the plugin. In my head this can create menus on SageTV that looks something like:
Code:
[Favourites                                       ]
[1. Floor                                         ]
[2. Floor                                         ]
… and these groups could also have a image, just to make it prettier.

Using the up/down arrows on the remote or keyboard, selects different groups. Using the left/right arrows moves between groups. Selecting for example "1. Floor" displays the sub-groups (the rooms) on the first floor. If we then select a room like "Master bedroom" we might see:
Code:
[Img][Lamp by bed 1      ][On][Off][20%][40%]…[80%]
[Img][Lamp by bed 2      ][On][Off][20%][40%]…[80%]
[Img][Ceiling light      ][On][Off][20%][40%]…[80%]
Using the arrow up/down selects different devices. Using the left/right arrows select different actions (on, off, etc). Enter tells the device to:
1. Log on to the BaseUrl using the given username and password (basic HTTP authenticaton
2. Do a HTTP Post (or something) with the BaseUrl & the Action URL (for example http://10.0.0.1:81/control.aspx?device=A2&action=2 )

And that's all there is to it!
At least it seems simple in my head, but perhaps it is harder than it looks…

The really, really great thing about this method is that almost everything can be controlled from SageTV. All that needs to be done to make a program supported, is to make a proper XML-document and a web page that can take parameters.


Are there anybody out there that see the potential in this?
Perhaps it's easier to do than I thought?

Please let me know!
__________________
SageTV 7 beta on Windows Home Server
5 TB storage, Hauppauge PRV-USB2, HomeSeer
3x PlaceShifters
1x HD200
Reply With Quote
  #2  
Old 03-15-2010, 02:37 AM
Moskus's Avatar
Moskus Moskus is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 223
No takers?
__________________
SageTV 7 beta on Windows Home Server
5 TB storage, Hauppauge PRV-USB2, HomeSeer
3x PlaceShifters
1x HD200
Reply With Quote
  #3  
Old 03-16-2010, 02:18 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I would be interested in doing the same thing for Control4. I would love to have a Sage addin that would allow me to control my lights in exactly the same way via Control4. I have Java could that could do this I just need the front end written. And I assume the front end could be the same for any and all Home Automation systems - although the code that would be executed when one clicks on a button would be different.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #4  
Old 03-17-2010, 03:24 AM
Moskus's Avatar
Moskus Moskus is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 223
Quote:
Originally Posted by wayner View Post
And I assume the front end could be the same for any and all Home Automation systems
That was the main idea.


Quote:
Originally Posted by wayner View Post
although the code that would be executed when one clicks on a button would be different.
Sure, but as long as the SageTV plugin only generates httpweb request to a given link (provided by either you or the home automation system), it shouldn't matter.


The links in the above example wouldn't do anything right now on my system, I'd have to make the control.aspx page that accepts the parameters action and level. But that's the easy part, the hard part is getting the menus into SageTV.
__________________
SageTV 7 beta on Windows Home Server
5 TB storage, Hauppauge PRV-USB2, HomeSeer
3x PlaceShifters
1x HD200
Reply With Quote
  #5  
Old 04-01-2010, 12:51 PM
Smiley's Avatar
Smiley Smiley is offline
Sage User
 
Join Date: Oct 2008
Location: Fabjerg, Denmark
Posts: 62
Smile C# and Java are 2 of a kind

Being a C# developer myself I have found that Java is not all that different, so I would suggest that you throw yourself into it

I have extended my SageTV setup with many additional services and dispite a few minor hickups things have gone rather smooth (I did run into some problems when building a ShoutCast service that had to work with extenders, but Java was not the problem, the buffer in the extender was the one to overcome)... so just go for it!

In my opinion the UI coding is the hardest part (mainly due to the smurf-language used in SageTV Studio... but at least the option is there) - but since you seem to be going for a more generic interface, using nielms 'Dynamic Customisable Menu' plugin you should be all set and will only have to worry about the Java part.

Happy Coding!

Cheers,

Smiley
__________________
SageTV 7.1.9 WinXP-32, Headless, 3xUSB HD Tuners, 4GB RAM, 6TB storage, Intel X25 disc for OS and SageTV
Media Extenders: 4 x HD200, 1 x HD300
Reply With Quote
  #6  
Old 04-19-2010, 02:56 AM
Moskus's Avatar
Moskus Moskus is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 223
Quote:
Originally Posted by Smiley View Post
In my opinion the UI coding is the hardest part (mainly due to the smurf-language used in SageTV Studio...
Well, this I believe is the main problem.

If it was easy it would be done by now...
__________________
SageTV 7 beta on Windows Home Server
5 TB storage, Hauppauge PRV-USB2, HomeSeer
3x PlaceShifters
1x HD200
Reply With Quote
  #7  
Old 04-19-2010, 05:18 PM
lamanmi's Avatar
lamanmi lamanmi is offline
Sage Advanced User
 
Join Date: Sep 2004
Location: Kirtland, Ohio
Posts: 199
HAMon - Home Automation



I am working on just such an application. It will have both a Homeseer pluging and a Sage STVI. The main focus of it so far is to be able to see status and control devices that are in homeseer.

More to come soon.......
Reply With Quote
  #8  
Old 04-20-2010, 04:35 AM
Moskus's Avatar
Moskus Moskus is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 223
Wow, that's great!
If you need anything, let me know!
__________________
SageTV 7 beta on Windows Home Server
5 TB storage, Hauppauge PRV-USB2, HomeSeer
3x PlaceShifters
1x HD200
Reply With Quote
  #9  
Old 04-20-2010, 07:41 AM
heatvent's Avatar
heatvent heatvent is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Chicagoland
Posts: 258
Great news. Glad to see someone else seeing some value in this plugin/STVI. If you need someone to help test, I would love to help out.
__________________
SageTV 7.0.0.23, P5Q-EM Motherboard, 2.5Ghz Quad Core, Windows 7 x64, HVR-2250, 8GB RAM, 1TB HD, 2 HD-200 Extenders
Reply With Quote
  #10  
Old 04-20-2010, 08:08 PM
exdirtfarmer's Avatar
exdirtfarmer exdirtfarmer is offline
Sage User
 
Join Date: Jan 2004
Location: MB, Canada
Posts: 59
This is great news indeed. I have homeseer and sagetv and would be interested in your project. Keep us all posted.
Reply With Quote
  #11  
Old 04-22-2010, 09:17 AM
mbowling mbowling is offline
Sage Advanced User
 
Join Date: Sep 2008
Location: Cascade Mountains of Oregon
Posts: 223
FYI... Another HomeSeer and SageTV user, interested in this project.
Reply With Quote
  #12  
Old 04-23-2010, 12:58 PM
banjo banjo is offline
Sage Advanced User
 
Join Date: Jan 2007
Posts: 90
Cool

Cool i would like this project as well. keep on!
Reply With Quote
  #13  
Old 05-06-2010, 08:23 PM
heatvent's Avatar
heatvent heatvent is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Chicagoland
Posts: 258
Quote:
Originally Posted by lamanmi View Post


I am working on just such an application. It will have both a Homeseer pluging and a Sage STVI. The main focus of it so far is to be able to see status and control devices that are in homeseer.

More to come soon.......
Any updates and is there anything you need help on?
__________________
SageTV 7.0.0.23, P5Q-EM Motherboard, 2.5Ghz Quad Core, Windows 7 x64, HVR-2250, 8GB RAM, 1TB HD, 2 HD-200 Extenders
Reply With Quote
  #14  
Old 05-07-2010, 04:20 AM
Moskus's Avatar
Moskus Moskus is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 223
Yeah! I'd love help with beta-testing!
__________________
SageTV 7 beta on Windows Home Server
5 TB storage, Hauppauge PRV-USB2, HomeSeer
3x PlaceShifters
1x HD200
Reply With Quote
  #15  
Old 05-07-2010, 05:02 AM
DRB DRB is offline
Sage Advanced User
 
Join Date: Oct 2003
Posts: 126
I have Sage on WHS, but HS on a seperate computer. Will the pluggin work like this? I haven't yet tried to install HS on WHS yet.

DRB
__________________
DRB

I WANT MY HDTV
Reply With Quote
  #16  
Old 05-08-2010, 05:03 AM
lamanmi's Avatar
lamanmi lamanmi is offline
Sage Advanced User
 
Join Date: Sep 2004
Location: Kirtland, Ohio
Posts: 199
Quote:
Originally Posted by DRB View Post
I have Sage on WHS, but HS on a seperate computer. Will the pluggin work like this? I haven't yet tried to install HS on WHS yet.

DRB
Yes......there will be two components.

1) A Homeseer Plugin - this will manage the connection and communication with Homeseer and the Sage units.

2) A Sage STVI which will communicate with the Homeseer Plugin over the network.

This set up will work in both senerios of Sage/Homeseer being on the same server or them being on different servers (they of course have to be on the same network).
Reply With Quote
  #17  
Old 05-08-2010, 05:06 AM
lamanmi's Avatar
lamanmi lamanmi is offline
Sage Advanced User
 
Join Date: Sep 2004
Location: Kirtland, Ohio
Posts: 199
Quote:
Originally Posted by Moskus View Post
Yeah! I'd love help with beta-testing!
Moskus,

Thanks for the offer...I probably have about 2-3 more weeks to get the setup utilities established.....

The current functionality includes:

- Ability in Homeseer to select which devices will be visibile in Sage
- Ability to tie status graphics to the device status (i.e. On/Off)
- Ability to control the devices (On/Off/Dim) through Sage
- Ability to send Sage messages from a Homeseer event (i.e. "Garage door has opened")

More to come.....
Reply With Quote
  #18  
Old 05-08-2010, 08:16 AM
Moskus's Avatar
Moskus Moskus is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 223
Can't wait to start Beta-testing, this will let me reach a new level in WAF!!

If you need any help at all just let me/us know. I know only VB.net and a little C# but enough to get the job done. But sadly I have no experience with Java...
__________________
SageTV 7 beta on Windows Home Server
5 TB storage, Hauppauge PRV-USB2, HomeSeer
3x PlaceShifters
1x HD200
Reply With Quote
  #19  
Old 05-08-2010, 12:50 PM
heatvent's Avatar
heatvent heatvent is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Chicagoland
Posts: 258
I can help with testing as well (although I don't have any programming experience).
__________________
SageTV 7.0.0.23, P5Q-EM Motherboard, 2.5Ghz Quad Core, Windows 7 x64, HVR-2250, 8GB RAM, 1TB HD, 2 HD-200 Extenders
Reply With Quote
  #20  
Old 05-22-2010, 08:40 PM
sagestuff sagestuff is offline
Sage User
 
Join Date: Jan 2004
Posts: 42
As another SageTV / Homeseer user this sounds very cool to me as well - great idea / work Lamanmi! Will subscribe to this thread to stay in the loop.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anyone have Control4 home automation? wayner General Discussion 12 12-07-2012 04:59 AM
Do you want to use SageTV for Home Automation? heatvent SageTV Customizations 33 07-05-2010 01:37 AM
Home Automation jaminben SageTV United Kingdom 15 12-20-2009 03:54 PM
Home automation SageGk Hardware Support 6 09-17-2009 12:00 PM
Oy! Look at what Home Automation really costs... IVB The SageTV Community 6 05-01-2006 11:46 AM


All times are GMT -6. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.