colinodell/python-qnapstats

Possible status states

ntalekt opened this issue · 1 comments

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: <TS-251+>

QTS Version: <4.4.1>

Trying to create a custom button card using the status and drive_smart_status stats. Where can I find a list of possible states the status sensors could be?

Thanks.

Nevermind, found a way to template the status using the custom:button-card

        state:
          - operator: template
            value: >
              [[[
                return states['sensor.nas2_status'].state != 'good';
              ]]]
            color: rgb(255,65,54)
          - operator: default
            color: rgb(46, 204, 64)