XaF / qolsysgw

Qolsys IQ Panel 2+ gateway to an Home Assistant Alarm Control Panel
MIT License
134 stars 13 forks source link

Feature request: Add a last error message entity #80

Closed CitizenRacer closed 1 year ago

CitizenRacer commented 1 year ago

The last_error time entity is super useful. I'd love to have a text field that goes with it that easily displays what the last error was. It'll make it much easier to start digging in on what to repair.

XaF commented 1 year ago

You can create that directly in Home Assistant. You can create a sensor that tracks an attribute of another sensor, in this case the last error message available as attribute of the last error sensor!

XaF commented 1 year ago

I believe something like:

template:
  - sensor:
      - name: qolsys_panel_last_error_desc
        state: "{{state_attr('sensor.qolsys_panel_last_error', 'desc')}}"
CitizenRacer commented 1 year ago

WHOA. I had no idea. THANK YOU. Perhaps add it to the docs?

XaF commented 1 year ago

I do need to write documentation about the available attributes of the entities at some point!