A very simple automation issue, but the SmartThings integration can't solve it, is turning off the air conditioner lights. Even accessing this function directly on the unit doesn't work, and the same goes for automation.
alias: Turn off the air conditioner lights after 2 minutes.
triggers:
- trigger: state
entity_id:
- switch.escritorio_display_lighting
- switch.quartinho_display_lighting
- switch.quarto_de_visita_display_lighting
- switch.suite_master_display_lighting
to: "on"
for:
minutes: 2
actions:
- action: switch.turn_off
target:
entity_id: "{{ trigger.entity_id }}"
mode: parallel
Your automation looks fine, but if the integration doesn't pass this (when the respective switches are toggled) or if your unit doesn't support the command, then the automation won't do anything. Have you checked the HA logs for errors?
The log of the switch.turn_off action
In the most recent execution, the action trace was this:
action/0 → switch.turn_off
params:
domain: switch
service: turn_off
service_data: {}
target.entity_id: ["switch.suite_master_display_lighting"]
running_script: false
script_execution: "finished" (no error)
Now I'm going to send the switch.turn_off directly to the display. With wait active, the state remains on, and the last_changed remains at 00:47:03 (the same as before the command). The manual switch.turn_off, called directly on the entity (without any automation involved), did absolutely nothing.
The debug log captured the full conversation with the cloud:
Executing command for device 260c4525-...:
capability: samsungce.airConditionerLighting
command: setLightingLevel
arguments: ['off']
Command response: {"results":[{"id":"...","status":"COMPLETED"}]}
Are you sure your AC supports this feature? It looks like your going via some Samsung cloud service. Either they're not forwarding that command to the AC, or they are, but the AC is ignoring it (if unsupported).
I'm using the integration with Samsung Smart Things; I can do this through the Samsung app.
Through Home Assistant, I can turn it on, turn it off, set the temperature, everything works except turning off the light.
