/samsung-oven-sync-time

Sync time on Samsung ovens

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Setup

Get a personal access token to "Control all devices"

Put this in a file ~/.config/@smartthings/headers:

Authorization: Bearer <personal access token>

Get the oven device id using smartthings-cli:

smartthings devices

Run overnight

0 3 * * * cronty samsung-oven-time-sync --cron <device id>

Alternatives

You can do this with smartthings-cli too:

NOW="{\"x.com.samsung.da.currentTime\":\"$(date +%Y-%m-%dT%H:%M:%S)\"}"
smartthings devices:commands <device id> "main:execute:execute(\"/configuration/vs/0\", $NOW)"