hello,
I set up an automation called Movie mode
it sets my living room and my dining room light to movie effect mode when I play something on my Mi box at night
I set up two automation and two scenes because HA doesn’t use the list of effects that I have on the Aqara app for my Aqara lights
so I have 2 scenes to set the way the lights are in default mode and movie mode
and on automation for each scene
so on my Mi box when I launch a movie on Plex the light switches to movie mode and when I pause the light switches back to default mode
the only problem is when I use Netflix on my mi box, movie mode is on when I enter in a profile and not when I press play
and it stays stuck in movie mode when I leave Netflix
does anyone know how to make it work the same way in both apps Plex AND Netflix?
I know from experience that the Plex portion does distinguish between playing and paused or stopped. It can be a little flaky at times, though.
As far as Netflix, I am going say it is something in the integration if you cannot distinguish between playing,. paused or stopped.
I use mine to create a temp scene of the current lighting, then set them to “movie mode” (scene) and then when paused or stopped, it restores the lights to the original temp scene and deletes the scene. Pressing play, starts the whole process over, again.
there’s not enough technical information here for someone to really help you unless someone has your specific hardware (i don’t).
however if you can provide some more info we may be able to help…
a few questions
- i presume you have an integration connected to your mi box and the automation you have so far is interacting with the entity provided by that mi box integration. is that correct?
- please share the code you have so far. please do so using the pre-formatted text (hit the
</>
button above)
- in order to do what you want, we will need to see different mi box states. if the entities don’t report something different between states, then i don’t know how we can tell when to switch modes… so in order to find the diffrent states we might key off of, please send the following screen shots of the mi box entity:
3a) go to dev tools->states, find the mi-box entity and give us a screen shot of the entire row (include the state, and all the attributes) when it is just before you launch a netflix movie when it should be in default mode.
3b) sent the same screenshot of the entire row as 3a. but do this after you have started the netflix movie and you want it in movie mode.
3c) send the same screenshot yet again, but this time after you’ve paused or stopped the movie when it should go back to default mode.
1 Like
I understand it can be difficult for others with this little information.
of course, I can provide any information you need
here is the YAMLPreformatted text
code for my automation:
alias: Movie mode
description: éclairage ciné salon
trigger:
- platform: device
device_id: 87898769058c4204f6819f8e5f06f7fd
domain: media_player
entity_id: 761f05d63ea1c9f2f8be8536ce2df62c
type: playing
condition:
- condition: device
type: is_on
device_id: c23e43c39cd2f65ca5a5092c54374718
entity_id: a1f2211188b48fb4640ab9d1d226b256
domain: light
- condition: or
conditions:
- condition: device
type: is_on
device_id: 09bc4f981025374aee487bfc2087832d
entity_id: 2c9046ffe8e4bea257c0438f7f6a5828
domain: light
action:
- service: scene.turn_on
metadata: {}
target:
entity_id: scene.movie
mode: single
i think it is more simple for Hass to now what plex is doing because there is an integration for plex but there isn’t one for netflix and the play message maybe sent for netflix when it is launch and note when netflix is really playing somzthing
need the 3 states. see 3a, 3b, 3c.
ok, but I’m a beginner so where is this 3a 3b 3c?
ok I understand now
I will send the 3 screenshots as soon as possible
thanks a lot