You can add this in your configuration.yaml and
use it in an automation.
rest_command:
wd_bureau_on:
url: 'http://192.168.0.43/rpc/Ui.Screen.Set?params={"on":true}'
method: get
wd_bureau_off:
url: 'http://192.168.0.43/rpc/Ui.Screen.Set?params={"on":false}'
method: get
wd_bureau_brightness_100:
url: 'http://192.168.0.43/rpc/Ui.SetConfig?config={"brightness":{"level":100,"auto":false}}'
method: get
To turn the screen on with max brightness, you can use the brichtness setting, not the “on” setting. When your screen is set to auto it wil default to 37% or something.
Hi,
I love finding this, as I was quite disappointed that I couldn’t toggle the display on and off from scratch. However, I am too unepxerienced to undertsan dhow to use this rest commands. I added the rest-command to the confifuartion.yaml, and as far as I understand, it should be possible now to call a service (??), e.g. wd_bureau_off in an automation. But how? Has anyone an exmaple code from an automation?
Yes, if you add the “rest_command” part to your configuration.yaml and peforming a config check and restart, there should be an “rest_command” action available in your automation builder.