How the heck do i do this ? (tried myself for over an hour)

Goal: when someone is playing prevent some light turning on and adjust other light level, so people can see to walk through the room but the person playing does not get glare on the screen and no light on the side do not distract

Currently i have the hubitat ping set up to ping the xbox this works great.
I have a rule machine to use the above and set a XBOX "switch" to on

Not i cannot figure out what to do to make the lights do what I want. light are currently in the "motion and mode lighting apps"
Do i need to move these "Room lighting" ?
Do i need to make PITA scenes ? (i get the capture part but why in the hell can i not add things manually or adjust the values ? )
Or is this just rule machine with a bunch of code?

I'm pretty sure there was also an option in motion and mode lighting to disable the motion-based lighting when a switch was turned on.... Are you able to see something like that? You could use the virtual switch for the XBox in this case.

If not, then RL would be your best option.

1 Like

Yes I can disable with the switch - i was sorta hoping for do the lights like this - unless this switch is on then only do this (different levels and such)

also what's the difference here ?

and i assuming this section might do what i want ?

I'm not sure if you can configure different outcomes with the lights based on the switch being on, at least not in a way that I can think of within the same instance of motion lighting.

The different options are so that you can use the state of a device (the switch) to limit the activation, or you can use an event to turn off (disable) the possibility of activation without the need for managing a device like a virtual switch. The second option can be useful when you want to disable activation when a button is pressed.

2 Likes

I think "Simple lighting" app has a restriction that may help.

You can (I expect) set multiple levels, conditions, with "if\then" conditions via "Rule Machine".

1 Like

do i nee two room lighting ? one run with switch on and another with switch off ?

I'm sure there are a bunch of ways to do this, but off the top of my head, I guess I'd start with this... If you want lighting settings that are unique to the XBox switch being on vs off, then I think you'll need 2 Room Lighting (RL) instances that cover those.

Then you could make a Rule Machine rule that pauses the one RL (and activate the other) when XBox is On and then flip the pause/activate RL when XBox is Off.

1 Like

I don't use room lighting at all.
I use several apps ( Rule, Motion, Simple, Basic), depending on complication and abilities.
SImple restrictions to when the rule activates or parameters can be setup, independent of "Rooms". I do not know what, if any, Rooms may have. I don't use that at all.

I agree with hydro311 there are several way to approach this.

If you want the lights to come on with motion and the xbox is off, I'd probably use simple lighting (above).
If you want the lights to come on but at different levels or something depending on if the xbox is on or off, I'd use rule machine If\then cascade.
If you prefer "Motion lighting", you can set a restriction where the rule only runs IF the xbox is off.

1 Like

Rereading your goal...
I'd suggest Rule machine. Motion triggering the rule, conditional statement
IF xbox on, then turn on\set these lights,
Else if xbox off, turn on\set these lights ...
end if.
You could add several narrowing conditions if you have some complicated expectations.
ie time of day, day of week, depending on other devices on or off, whether or not someone is home or away... the possibilities are near endless.
Suggest remembering the KISS principle. (Keep it simple stupid) to minimize complications. BUT, you can be as specific and situational as you want (nearly).

1 Like

definitely try KISS on stuff

I may pull it into rule matching because i never seem to have luck on the built in stuff - it eather works great or it works sometimes and annoyes the family lol

1 Like

THAT is a critical component.

kids are the most critical too........ LOL

I current made a 2x room lighting and will test it out :slight_smile: I just made the switch opposite - this was easy using the clone tool) if there's a better way i can adapt later

I tend to stick with things i know and like - the thing that gets my results faster - I use motion lighting a lot however I feel like Room lighting is better even on basic stuff and the "force" options really help thing be reliable for working. so I have been moving my rules over there.

How do you do this? Are you saying that HE can identify when the Xbox is switched on?

yes, im network engineer - I figure out when xbox are "sleep" they don't respond to ping sometimes once a minute they will but only one or 2 pings

Here is the setup

use this driver and modify these 2 lines


then set it up like this

Make a rule for the virtual

it's not perfect - they do wake from time to time for about a minute and sometimes longer for up date but usualy late at night/early morning

1 Like

Actually i think i found an easier way

you cannot do < > on this ont so this forces the ping to be 100% (a 3 ping get a reply) but that should be fine

for example my XBOX woke up for 3 minutes I am not sure why

1 Like

this is what i had to do, with two RL running it was just inconsistent

what I did
Modified the RL rules to remove all the "activation" stuff

made a simple RM rules to pick the RL rules I wanted to use

(i'm not sure if else-if is correct that is the option it gave - i find getting those option to show up is a changelange )

I feel like this is easier than write the entire rule in RM (for me ) and give better on what its doing.

Turning on and off is working i have no idea how it will handle transitions lol

also found out during this test the MM motion is trash and has gone bad lol will research a replacement.

Hi, how do we find this driver. Also what do i modify the lines with? Appreciated :+1:

its in the hubitat package manager - or you can make the in RM like i showed above

Appreciated thanks. Also, what do I add into the lines where you said they need to be modified?