Every once in a while, I run into the issue of not knowing what possible states a component can be in. Besides trial and error and looking up other people’s config files, I don’t know the best way to find a summary on all the possible states of a component. Can anyone help me out and point me in the right direction for this?
If you don’t have the documentation and can’t find the manual for it by googling it, the trial and error may be your best choice. If it’s a zwave device you may be able to get some information under the zwave configuration section in HA.
Don’t know why you removed your second post, but the source files for components are under homeassistant/components. If you look at an example the fan component you will see a directory homeassistant/components/fan and under that directories for each of the different fan components. At the top of the homeassistant/components/fan directory you will see a file __init__.py. This contains the common elements of all the fan components. If you look at the file https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/fan/init.py you can see that fans all have a number of attributes. Lines 52-55 show: