Customizing message for printer ink automation

That won’t work.

Reference: Testing your automation

There’s nothing wrong with your automation. The problem is your testing procedure is incorrect. The Run command simply executes the automation’s actions (and because it doesn’t actually trigger the automation, the trigger variable is undefined).

  1. Go to Developer Tools > States
  2. Click on sensor.epson_xp_960_series_black_ink
  3. The selected sensor should now appear at the top of the page in a form.
  4. If the sensor’s current value is above 20, set its State to a value below 20 then click the Set State button.
  5. This is sufficient to trigger your automation.
  6. If the sensor’s current value is already below 20, set its State to a value above 20 and click the Set State button. Then set it to a value below 20 and click the Set State button.

After you are finished testing, set the sensor’s state value back to its original value or wait until its integration updates it with the latest value (the amount of time that may require depends on how the sensor’s integration operates).

1 Like