I am going to write this as concisely as I possibly can. Really need help here.
TV model: Sony XBR65X900F
Background: At night time, the bright tv hurts everyone's eyes. So we like to change the picture mode to a custom one we have set up which makes it super dark. However, it is annoying to have to press ACTION MENU --> PICTURE ADJUSTMENTS --> PICTURE MODE --> <scroll to the picture mode we want> ENTER --> BACK,BACK,BACK
My primary goal: To change to a SPECIFIC picture mode on my Sony TV with the press of a single button on the remote, by remapping it with Button Mapper app.
Problem: I don't know what command Button Mapper needs to send to select a specific picture mode (or even toggle through them) in the Sony settings.
Questions: -Is my primary goal (above) or even my secondary goal (below) possible? -Do I need to use Pro version of Button Mapper to send shell commands? If so, what is syntax for Picture Mode toggle?
===== Backup Goal: if the primary goal is not possible because you can't go directly to a specific picture mode with a command to the TV, I'm willing to concede that the button could be used to TOGGLE through ALL picture modes instead.
EDIT 1: No, I am not interested in using the ambient light sensor to adjust the brightness because, number one it changes my color and brightness settings from what I want during daytime use and because number two it doesn't bring the brightness and contrast low enough on the TV at night time to make enough of a difference.
https://pro-bravia.sony.net/develop/integrate/rest-api/spec/service/video/v1_0/setPictureQualitySettings/index.html
You can use the REST API to adjust settings of current picture mode. After you setup PIN authentication, a REST request is essentially calling various URLs to send messages/commands.
There's also getPictureQualitySettings endpoint if you wanted to setup stuff like 'incrememt brightness by 5'.
Depending on capabilities of Button Mapper alone, you might have to call the REST endpoints through Tasker or something else that can handle REST easily for your comfort level.