Hi everyone,
I’m working on integrating my Samsung NV7B42304CK/U1 oven with Home Assistant via the SmartThings API. The integration is mostly working, and I’ve successfully set up automations to control the oven, including custom cooking presets and toggling the oven light using the samsungce.lamp
capability (setBrightnessLevel
).
However, I’ve run into an issue with the oven light:
The oven’s light automatically turns off after 2 minutes, even when the light is manually turned on via the API. I’ve set up an automation in Home Assistant to trigger the setBrightnessLevel
command every 1 minute to keep the light on. While this technically works, the oven still turns off the light after its 2-minute timeout, and my automation turns it back on again a minute later. This creates an undesirable on-off-on behavior.
I suspect this 2-minute light timeout is a hardcoded setting in the oven’s firmware. Does anyone know if there’s a way to override this behavior? For example:
- An undocumented option in the SmartThings API to keep the light on indefinitely until manually turned off.
- A way to reset or extend the timeout via additional commands or capabilities.
- Any other creative solution to manage the light behavior reliably within Home Assistant.
I’d really like to have more control over whether the light stays on or off, especially while the oven is running.
Thanks in advance for your advice or suggestions!
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"