MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » Community Skins and Plugins » MediaPortal Plugins


Reply
 
LinkBack Thread Tools Display Modes
Old 2006-12-20, 17:11   #1 (permalink)
Portal Member
 
Join Date: Apr 2005
Location: Southeast
Age: 37
Posts: 608
Thanks: 7
Thanked 41 Times in 26 Posts

Country:


Default Basic Home Automation via xAP BSC enabled devices (updated 9-01-2008)

MediaPortal Basic Home Automation Plugin supporting control of xAP Basic Status and Control (BSC) enabled devices.

With xAP either directly or through "connectors" you can control many devices.
The plugin uses the xAPFramework.Net (xFx)

Sample xAP BSC Connectors:
xAP X10 CM10 or CM11 devices
xAP X10

xAP X10 CM12U devices
CM12U

HomeSeer plugin that will xAP enable HomeSeer devices
Mi4.biz - Content


The BHAAhCmdLine.dll download allows support for connected CM15 USB devices
for this plugin. (Does not include xAP support for them though). Also requires
install of ahscript.

Features:
- Controlling xAP enabled Devices
- Creation of "Macro Scenes" that allow you to have several devices configured to be set to specified setting with a single command
- Creation of Delay Timers to use in Macro Scenes to delay execution of items.
- "File Runner" devices to run external files

Notes:
Only tested with recent SVN and BlueTwo Skin.
Very Beta so does a lot of logging and may cause problems
Readme included in the zip file.

Download from the MediaPortal plugins download section.
(May take a little while to appear)
Also added the download here until the downloads section is updated.

v0.1a
- Added missing images (Yes, I forgot them)
- Changed some internal code to use interfaces for control and display
- Added BHA.log logging independent of the mediaportal.log file

v0.1b
- Changed BSC cmd message body blocks to include index
- Added static lookups for folder locations for ease in future

v0.1c
- Added basic support for xap-temp.notification and temp.reading devices

v0.1d
- Fixed BSC Stream Device Text display

v0.2a (3/26/2007)
- Added option to align label text via skin file
- Added ability to control Keyboard Within Item Navigation via skin file
- Reworked database, now using System.Data.SQLite.dll
- Added Import for V1 to V2 database
- Changed "Escape" to back up a level verses going to the home screen
- B2Wide skin file included

v0.2b (04/03/2007)
- Add option to set imageset to NONE
- Fixed OSD displays
- Changed Display OSDService to use a list for displaying buttons
- Changed Display OSDService to use reply with button text verses translated text

v0.2c (04/04/2007)
- Fixed OSD Duration
- Added OSD Lines to 4

v0.2d (05/19/2007)
- added hover_BHA.png for Home screen image
- Fixed Level Device level change bug
- Fixed List View bug when page up and down
- Added BHAAhCmdLine plugin to allow use of ActiveHome ahcmd.exe command line
tool for device control and status updates (specifically added for X10 CM15A USB Device Control)

v0.2e (05/28/2007)
- Added more fixes to the ActiveHome plugin for CM15 devices.
- Went to System.Data.SQLite version 1.0.41 beta for compatibility with another plugin.
- Make several changes to SQL statements to work around a bug in System.Data.SQLite 1.0.41 beta
(AccessViolationException in 1.0.41 beta - System.Data.SQLite)


v0.2f (06/05/2007)
- Fixed sending Off then Dim on toggle command to send Dim then Off.

v0.2g (06/30/2007)
- Fixed Label alignment not working
- Added Option to Show(or not) the State Text on per device basis
- Added Web Pic= support for the Mi4.biz display.message
- Added option Image= support to the standard xAP-OSD.Display for Tivo and Slimp3 schemas
- Added Range Setting Option for TemperatureSensor devices to allow for level image use
- Moved CM15 support files to own zip file

v0.2h (07/08/2007)
- Fixed bug caused by Label alignment fix.

v0.2i (09/24/2007)
-Converted to xFx.dll
-Added advanced settings for level devices (multiplier and Offsets)
-Converted Database, Thumbs, Plugin folder lookups to native MP API

v0.2j (09/01/2008)
-Added Sound= Option for Message.Display in the Display.Look block
-Allowed more flexability for the OSD timeout/duration
0=Sets the duration to 2 weeks, LT 0 or GT 2weeks results in 20 second timeout


patrick
Attached Thumbnails
Basic Home Automation via xAP BSC enabled devices (updated 9-01-2008)-all-devices.jpg   Basic Home Automation via xAP BSC enabled devices (updated 9-01-2008)-categories.jpg   Basic Home Automation via xAP BSC enabled devices (updated 9-01-2008)-lighting-category-devices.jpg  

Last edited by patrick; 2008-09-01 at 16:00.. Reason: updated files to v0.2i
patrick is offline   Reply With Quote
3 Users Thank You:
Old 2006-12-20, 19:27   #2 (permalink)
Portal Member
 
shred444's Avatar
 
Join Date: May 2006
Posts: 143
Thanks: 0
Thanked 0 Times in 0 Posts


Default

damn, now you'll never have to leave your couch
__________________
http://www.shred444.com
Click the image to open in full size.
shred444 is offline   Reply With Quote
Old 2006-12-21, 00:18   #3 (permalink)
Portal Member
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Great !!!!!
I want it NOW ))
I've tried it using lastest svn build but when I click configure in the process plugin section I get following exception (copied from error.log).
Did you have any idea to solve this problem?

Thanks a lot!
Lukxz.


2006-12-21 00.00.17.781250 [ERROR][MPMain]: SQL:BHADatabasev1.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:no such column: devices.commandline queryelect devices.idDevice as idDevice ,devices.pluginKey as pluginKey ,devices.bhadevicetype as bhadevicetype ,devices.uid as uid ,devices.address as address ,devices.alias as alias ,devices.category as category ,devices.imagepath as imagepath ,devices.location1 as location1 ,devices.location2 as location2 ,devices.location3 as location3 ,devices.location4 as location4 ,devices.deviceschema as deviceschema ,devices.statusonly as statusonly ,devices.hidedevice as hidedevice ,devices.exstring1 as exstring1 ,devices.exstring2 as exstring2 ,devices.imagesetstate as imagesetstate ,devices.commandline as commandline ,devices.commandlineargs as commandlineargs ,devices.state_on_alias as state_on_alias ,devices.state_off_alias as state_off_alias ,devices.state_unknown_alias as state_unknown_alias ,devices.use_alt_image as use_alt_image ,devices.adjust_level_pct as adjust_level_pct from devices WHERE pluginKey LIKE 'xAPController' and bhadevicetype LIKE 'BSCBinary'
2006-12-21 00.00.17.921875 [ERROR][MPMain]: Unable to start plugin:BHAProcessPlugin.BHAPlugin exceptionQLite.NET.SQLiteException: SQL:BHADatabasev1.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:no such column: devices.commandline queryelect devices.idDevice as idDevice ,devices.pluginKey as pluginKey ,devices.bhadevicetype as bhadevicetype ,devices.uid as uid ,devices.address as address ,devices.alias as alias ,devices.category as category ,devices.imagepath as imagepath ,devices.location1 as location1 ,devices.location2 as location2 ,devices.location3 as location3 ,devices.location4 as location4 ,devices.deviceschema as deviceschema ,devices.statusonly as statusonly ,devices.hidedevice as hidedevice ,devices.exstring1 as exstring1 ,devices.exstring2 as exstring2 ,devices.imagesetstate as imagesetstate ,devices.commandline as commandline ,devices.commandlineargs as commandlineargs ,devices.state_on_alias as state_on_alias ,devices.state_off_alias as state_off_alias ,devices.state_unknown_alias as state_unknown_alias ,devices.use_alt_image as use_alt_image ,devices.adjust_level_pct as adjust_level_pct from devices WHERE pluginKey LIKE 'xAPController' and bhadevicetype LIKE 'BSCBinary'
in SQLite.NET.SQLiteClient.ThrowError(String statement, String sqlQuery, SqliteError err)
in SQLite.NET.SQLiteClient.Execute(String query)
in BHACore.Database.BHADatabase.GetDeviceIDsForPluginKey(String pluginKey, BHADeviceTypes deviceType)
in BHACore.BHADeviceManager.LoadAllKnownPluginBSCBinaryDevices(String pluginKey)
in BHACore.BHADeviceManager.LoadPluginConnectors()
in BHAProcessPlugin.BHAPlugin.Start()
in MediaPortal.GUI.Library.PluginManager.Start()
2006-12-21 00.01.19.828125 [ERROR][MPMain]: Control has invalid animation type
lukxz is offline   Reply With Quote
Old 2006-12-21, 00:23   #4 (permalink)
Portal Member
 
shred444's Avatar
 
Join Date: May 2006
Posts: 143
Thanks: 0
Thanked 0 Times in 0 Posts


Default

whats the difference between xAP and x10?
__________________
http://www.shred444.com
Click the image to open in full size.
shred444 is offline   Reply With Quote
Old 2006-12-21, 00:44   #5 (permalink)
Super Moderator
 
Join Date: Feb 2005
Location: Melbourne
Posts: 1,992
Thanks: 82
Thanked 28 Times in 28 Posts

Country:

My System

Send a message via ICQ to Marcusb
Default

I guess the biggest difference is that xAP is open source while X10 isn't. Now we of all people know the benefits of that ;-)

FRom looking at those links there is also an interface to allow xAP to contol X10 devices.
Marcusb is offline   Reply With Quote
Old 2006-12-21, 01:05   #6 (permalink)
Portal Member
 
shred444's Avatar
 
Join Date: May 2006
Posts: 143
Thanks: 0
Thanked 0 Times in 0 Posts


Default

i thought x10 was a protocol? if so, wouldnt that have to be open source?
__________________
http://www.shred444.com
Click the image to open in full size.
shred444 is offline   Reply With Quote
Old 2006-12-21, 15:40   #7 (permalink)
Portal Member
 
shred444's Avatar
 
Join Date: May 2006
Posts: 143
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I did a little research and i think xAP(pronounced Zap!) is a protocol for communication between devices.

I believe X10 is another protocol that uses existing power lines throughout the house to communicate between devices.

I believe there is software/hardware that interprets xAP codes, and transmits them over X10.

...but im not sure
__________________
http://www.shred444.com
Click the image to open in full size.
shred444 is offline   Reply With Quote
Old 2006-12-21, 16:10   #8 (permalink)
Portal Member
 
Join Date: Apr 2005
Location: Southeast
Age: 37
Posts: 608
Thanks: 7
Thanked 41 Times in 26 Posts

Country:


Default

Quote:
Originally Posted by lukxz View Post
Great !!!!!
I want it NOW ))
I've tried it using lastest svn build but when I click configure in the process plugin section I get following exception (copied from error.log).
Did you have any idea to solve this problem?

Thanks a lot!
Lukxz.
My fault

I attached updated DLL files to the first post while I update the MP download.

HTH,
patrick
patrick is offline   Reply With Quote
Old 2006-12-21, 16:38   #9 (permalink)
Portal Member
 
Join Date: Apr 2005
Location: Southeast
Age: 37
Posts: 608
Thanks: 7
Thanked 41 Times in 26 Posts

Country:


Default

Quote:
Originally Posted by shred444 View Post
whats the difference between xAP and x10?
Pretty good description here:
http://www.edjo.pwp.blueyonder.co.uk...hat_is_xap.htm

Basically xAP allows a common/known protocol between devices of different types
so they can communicate with and/or control each other.
(Similar to upnp in that respect.)

HTH,
patrick
patrick is offline   Reply With Quote
Old 2006-12-23, 00:20   #10 (permalink)
Portal Member
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Patrick, now it works well !
It's a very useful plugin... now I'm looking to automate all my x10 and 1-wire devices....

Two questions:

- first, I'm pretty new in xAP technology, can you explain me how can I trigger an OSD event from another xAP node?

- second, can you post images to configure your plugin? Now I've found only icons for leveling dimming modules but in your screenshot you've many many more!

Thanks and best wishes to all !!!!
Marry xmas.
lukxz is offline   Reply With Quote
Reply

Bookmarks

Tags
automation, basic, bsc, devices, enabled, updated, xap

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pinnacle MediaCenter 100i Remote kadafi General Support 28 2007-02-06 19:57
Basic Home remember focus mirk Skins 1 2006-11-24 16:04
Patch: Start Media Portal with basic home screen scoop General Development (no feature request here!) 4 2006-01-06 19:59


All times are GMT +1. The time now is 09:29.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden