Trigger and automation on firmware change

I want to write an automation that will tell me when the firmware is updated on my LuxPowerTek inverter. The sensor (sensor.lux_firmware_version) is a text value (aAAA-1C1D). I want to know when it changes. I thought I could do it with a Binary Sensor, but I think that is looking for an on or off type event, not just a change.

I could of course just write a check for the version, but I don’t want to have to keep updating the automation.

A state trigger can do that:

trigger:
- platform: state
  entity_id: sensor.lux_firmware_version
  to: null

(note, that’s not "null" but null)

That worked a treat, thanks very much.

1 Like