Hi everyone,
I’m trying to integrate my Samsung NV7B42304CK/U1 oven into my Home Assistant setup using the SmartThings API.
I’ve successfully completed the first step and can now turn the oven on and off and apply my own custom cooking presets. However, I’ve encountered an issue related to the oven light.
The oven’s light automatically turns off after 2 minutes, even when I’ve set up an automation in Home Assistant to trigger the setBrightnessLevel
command (e.g., to “high”) every 1 minute. While the automation works in theory (the light does turn back on every minute), it seems that the oven’s preset 2-minute timeout overrides my automation. The result is the light turning off after 2 minutes, only to be turned on again by my automation, creating an undesirable on/off cycle.
Does anyone know if there’s a hidden API option to override the light timeout or make the light stay on until I manually turn it off? Any help would be greatly appreciated!
Here’s what I’ve tried and what I’d like to know:
- The oven light turns off automatically after 2 minutes, even if it’s turned on via the API.
- I’m using the
samsungce.lamp
capability and setting the brightness level to “high” via the API. - I’d like to know if there’s an undocumented way to override this timeout (e.g., persistent brightness levels, hidden API options, or other workarounds).
Thanks in advance for your help!
For reference, this is what i have:
In HA, i have this REST command to “turn on my oven light”
## Turn on oven light
turn_on_oven_light:
url: "https://api.smartthings.com/v1/devices/MyDeviceID/commands"
method: post
headers:
Authorization: "Bearer {{ states('sensor.smartthings_token') }}"
Content-Type: "application/json"
payload: >
{
"commands": [
{
"component": "main",
"capability": "samsungce.lamp",
"command": "setBrightnessLevel",
"arguments": ["high"]
}
]
}
Then I have a sensor that looks for the state of the oven:
## Sensor for oven state
sensor:
- platform: rest
name: Oven Job State
resource: "https://api.smartthings.com/v1/devices/MyDeviceID/status"
method: GET
headers:
Authorization: "Bearer {{ states('sensor.smartthings_token') }}"
value_template: >
{{ value_json['components']['main']['samsungce.ovenOperatingState']['ovenJobState']['value']
if value_json is defined and value_json is not none and 'components' in value_json
else 'unknown' }}
scan_interval: 120 # Poll every 120 seconds
And then in i have an automation.yaml that contains this:
- alias: "Keep oven light on while oven is running"
trigger:
- platform: state
entity_id: sensor.oven_job_state
to: "preheat"
- platform: state
entity_id: sensor.oven_job_state
to: "cooking"
action:
- repeat:
until:
- condition: state
entity_id: sensor.oven_job_state
state: "ready"
sequence:
- service: rest_command.turn_on_oven_light
- delay: "00:01:00"