Yes you are correct and using your idea of turning off a virtual switch when entering the Live TV areas of Kodi, so that the auto dimming / brightening of the lights doesn’t happen.
I see two ways this could be done, both would need the Vera plug-in updating!
-
Add triggers for custom events, as we discussed, this should be done regardless really.
-
Add more “Menu” status items to cover the Live TV areas of the Kodi GUI. E.g.
“Menu EPG”
“Menu TV Channels”
“Menu Radio Channels”
“Menu Recordings”
“Menu Timer”
Number 2 would be my preferred option as that would leave the custom events unused and they could then be used for something else.
And then using the existing “Menu Video” trigger to turn back on the virtual switch, when we enter the movies or TV shows areas of the Kodi GUI, would then allow the auto dimming / brightening of the lights to happen.
All of this would be based on the video playback status as well obviously, Start or resume videos dims the lights and pause or stop brightens the lights.
We’d use Luup code or pleg in our scenes to query the status of the virtual switch, off then nothing happens, on then the lights are then “Linked” with Kodi and are controlled as per the Kodi playback status etc.
[quote=“richgodfrey, post:82, topic:184260”][quote=“cw-kid, post:79, topic:184260”]And could more default Menu state items be added? For the Live TV areas of Kodi?
These are the ones we have currently
Kodi Open
Menu Home
Menu Program
Menu Picture
Menu Setting
Menu Video
Menu Music
Menu Weather
Kodi Close
Trying to work out a way not to have the lights dimmed or brightened when watching liveTV but only for movies.[/quote]
There’s no reason why not, as all the different views eg recorded tv, epg, guide etc are defined by Window IDs. That would give you way more control.
Also, if would be useful to allow more custom entries than the current 2 if possible.[/quote]