Author Topic: UpdateEntArea improvement suggestion (Unmanaged room)  (Read 2073 times)

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
UpdateEntArea improvement suggestion (Unmanaged room)
« on: January 06, 2009, 12:23:07 am »
This feature has been requested several times in the past, and I wanted to implement it this weekend. First, I wanted to see what everyone thought of the idea..

The general idea is to have a way that a user can opt out of having auto generated scenarios. Some people want to have ultimate control of all scenarios displayed. For example, if I didn't want a Showtime scenario in my bedroom, I could have a way to make sure that it is not generated by UpdateEntArea.

Upon looking over the code again, two different methods came to mind:

Method 1): Use the "Miscellaneous" room type to designate that auto-generated scenarios should not be generated.

Method 2:) (my preference) Add an "Unmanaged" room type. Then, do not auto-generate any scenarios for this "Unmanaged" room type. Then if someone wants full control of scenarios, they can set the room type to "Unmanaged" and make their own scenarios. The advantage of doing this method is that it is guaranteed not to break current installations. The coding would be very easy - essentially checking if FK_RoomType_get()!=ROOMTYPE_Unmanaged_CONST


I think this would be a great addition to LMCE and users that wish to have full control over their scenarios.
If you have any opinions against this, or other ideas, please post them here.

freymann

  • Douchebag
  • Guru
  • *
  • Posts: 380
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #1 on: January 06, 2009, 01:45:07 am »
I think this would be a great addition to LMCE and users that wish to have full control over their scenarios.
If you have any opinions against this, or other ideas, please post them here.

I'm one of those users that would LOVE to see this happen. Specifying a room type that will be ignored by UpdateEntArea seems like a fine approach by me!

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #2 on: January 06, 2009, 02:31:16 am »
The only downside is that truely useful scenarios wouldn't be generated either (such as Video, Audio, etc. under media)
Maybe this warrents 2 new room types:
Unmanaged - no auto scenarios are generated
Unmanaged Lights - all auto scenarios will be generated except for the lighting category

One other option would be to instead have a new room type of "No Frills" (or similar name) which allows generation of scenarios that are truely needed and useful (such as On/Off for lighting, Video and Audio etc for Media, etc.), but skips fancy features such as showtime (or any automatically-executing feature for that matter).

« Last Edit: January 06, 2009, 02:50:08 am by jondecker76 »

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5505
  • DOES work for LinuxMCE.
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #3 on: January 06, 2009, 02:51:39 am »
***siiggghh****

heaven forbid we would actually TRY to improve the logic of UpdateEntArea. oh no, let's just DUCT TAPE OVER IT!

I'm against this, but.. he who provides the patch, makes the rules.

-Thom

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #4 on: January 06, 2009, 02:59:13 am »
How is this duct tape? Its an added feature, not a dirty hack.
Room types have only one use for LMCE, and that is UpdateEntArea logic. Therefore, the creation of room types that tell UpdateEntArea that room is unmanaged is falling directly in line with what that system is supposed to do and designed to do. Its just like using a room type of Kitchen tell UpdateEntArea to show a recipe scenario.

If you have a better proposal I'm all ears, but I think this a good and proper solution (no duct tape involved)

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5505
  • DOES work for LinuxMCE.
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #5 on: January 06, 2009, 03:01:39 am »
okay..

but I still think the fact that you're wanting to manually manage a room completely defeats the purpose of a smart home.

we need to spend time actually doing proper smart logic, not trying to make it where you have to program every little freaking thing.

*hmm*

but, whatever.

-Thom

freymann

  • Douchebag
  • Guru
  • *
  • Posts: 380
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #6 on: January 06, 2009, 03:05:18 am »
I do believe at one time the discussion about this went something like:

"wouldn't it be nice if UpdateEntArea didn't make changes if the scenario already existed"

giving us the ability to fine-tune "On" and "Showtime" Light Scenarios and not have them blown over and rewritten.

Jon's idea seems like a fair solution if no one can tackle it the way indicated above in italics.


tschak909

  • LinuxMCE God
  • ****
  • Posts: 5505
  • DOES work for LinuxMCE.
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #7 on: January 06, 2009, 03:06:52 am »
like i said, we can make this patch, and we'll integrate it,

but I see this as a short term solution only.

We need to improve our smart home logic instead of seeing this as a final solution.

-Thom

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #8 on: January 06, 2009, 03:13:52 am »
It is possible that either
A) A person doesn't want a smart home solution entirely, but wants to use LMCE as a home automation device
B) A person wants a smart home solution which LMCE provides, but there exists a situation where the smart solution isn't really desired
C) A person simply wants to be the brains behind their smart home solution

All of the above are possible, and I'm sure there are a lot of people that fall into one of the above listed categories

Please give me some suggestions, I do want to fix this and make it better.

For example, my first thought was to code in that showtime should only happen in room types of Theatre, Bedrooms and Living Room.. But is this a hack? It seems so to me.
Thats why I thought a designated room type made more sense because its how it is designed to work.

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #9 on: January 06, 2009, 03:20:33 am »
Now that I think about it - if you don't agree to an unmanaged room type, thats fine. I agree that this is what give LMCE its usefulness.

However, a room type that designates a room to have no automatically executed scenarios (like showtime for example) still makes a lot of sense.

I'll keep racking my brain though for a solution that everyone can be happy with.


tschak909

  • LinuxMCE God
  • ****
  • Posts: 5505
  • DOES work for LinuxMCE.
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #10 on: January 06, 2009, 04:29:30 am »
Hey Jon, don't take my disagreement as a stopping block.

I understand the utility of this.

But what i'm saying is that we need to think of this as a temporary solution, so that we put our mind sets on improving the smart logic in the long run.

Go ahead with the unmanaged room patch, and we'll roll it in, for now. But let's keep working on a better solution after you do this.

-Thom

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #11 on: January 06, 2009, 04:31:30 am »
Ok very well. In the time being, it wouldn't hurt to throw around more ideas.

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #12 on: January 06, 2009, 09:34:42 am »
I wanted to get opinions. I have it narrowed down to 2 implementations and I would like to see which most people would agree is more useful.

A) Have an "Unmanaged" room type which prevents any and all auto generated scenarios from happening to that room, along with a "No Frills" room type which prevents any automatically executing scenarios from being created for that room (like the Showtime scenario). Note that in a "No Frills" room type, normal scenarios in which you must press the scenario button to activate the scenario will still be generated.

B) Have an "Unmanaged" room type to add flexability for those who want it, and change the logic for the "Showtime" scenario to only be created for Living Room and Home Theatre room types (Afterall, if you have a TV in the kitchen, you don't want the lights to dim on you when you want to watch a movie while you cook. Or in your bedroom you watch a movie at night - you start the movie and turn the lights off.. But at 2:00 in the morning when you stop the movie, its horrible to have the lights pop back on full bore). Maybe this is more towards the Intelligent logic improvements that Thom is striving for.

What do you guys think would be the better implementation?
Any other UpdateEntArea improvements anyone can think of?

thanks

Jon
« Last Edit: January 06, 2009, 09:43:50 am by jondecker76 »

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2421
    • View Profile
    • ago control
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #13 on: January 08, 2009, 08:08:54 pm »
|          15 | Unmanaged               |        |     15 |      2141 |    35987 |          0 | 2009-01-08 20:07:44 |         NULL |
rock your home - http://www.agocontrol.com home automation

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: UpdateEntArea improvement suggestion (Unmanaged room)
« Reply #14 on: January 08, 2009, 08:35:56 pm »
thank you very much Hari this code will be very simple.

On another note,
I've decided on the final implementation of the Showtime scenario. It will be created for rooms:
Living Room
Home Theatre
Master Bedroom
and only for lights that support dimming commands (will not effect simple On/Off lights)