provider Device Settings POST
/assistant/set_night_mode_params @utdk/google/home
/assistant/set_night_mode_params Night Mode settings
This sets night mode options.
To view currently set values, use /setup/eureka_info.
If `enabled` is set to false, night mode is disabled and the other values do not matter.
`led_brightness` and `volume` refer to the maximum LED Brightness and Volume that is set during night mode.
`demo_to_user` is always set to `true` so change in values will be visible in realtime (like brightness).
`windows`: A combination of `length_hours` and `start_hour` is used to define start and end times for night mode. In this example, night mode starts at 10 PM (22) and ends at 6 AM (8 hours later). `windows.days` is an array of days of week when night mode will be enabled. Example: 0->Sunday, 1-> Monday, ..., 6->Saturday.
Try it
Authentication
Configure credentials for Google Home
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import google_home from '@utdk/google/home';
await google_home.nightmodesettings()