Hello! I'm trying to create an automation that reads a new state (from "unavailable") and then trigger a device to turn on. It's for a Bambu Lab X1C, I'm trying to read the material in "Active tray" to then trigger an external set of fans to turn on (by turning on a z-wave plug the fans are plugged into). I have the following so far:
description: ""
triggers:
- trigger: state
entity_id:
- sensor.bambu_lab_x1_carbon_active_tray
from: unavailable
conditions:
- condition: template
value_template: "{{ 'PLA' or 'PETG' in sensor.bambu_lab_x1_carbon_active_tray }}"
actions:
- type: turn_on
device_id: a833851361929981b8de7f7921311ad9
entity_id: 3e953955c7966607d360e8cc302c2f53
domain: switch
mode: single```
The sensor will read "Generic PLA" or "Generic PETG" when the tray is active with these materials, so trying these 2 as a test run (it will really be for ABS/ASA). I'm sure I'm doing something wrong on the condition, but I just can't figure out the proper syntax