I saw a reference to "Explore Device" command in Plugins>Grafana> menu... So when I try this on my garage door, I see:
- Code: Select all
Grafana Home Dashboard JSON representation of device Double Garage Door:
Grafana Home Dashboard name: Double Garage Door (NOT INCLUDED)
Grafana Home Dashboard subModel: (INCLUDED)
Grafana Home Dashboard deviceTypeId: (INCLUDED)
Grafana Home Dashboard measurement: device_changes (NOT INCLUDED)
Grafana Home Dashboard model: I/O-Linc Controller (INCLUDED)
Grafana Home Dashboard id: 29878231.0 (NOT INCLUDED)
Is it the case that inclusion is based on an OR of these conditions - i.e., so since I see a mix of "NOT INCLUDED" and "INCLUDED", that the final decision is that this device is included, meaning that it's data is added to InfluxDB? Or is this listing the different properties of the selected device (name, subModel, deviceTypeId, ...) and saying individually whether each is included? If so, then where are the other states of this device such as "binary input"? I really don't understand what this is trying to tell me.
Observing my Double Garage Door (I/OLinc) device in Indigo, I can see that the door closed state is the "binary input" state and it seems to take on values "open" and "closed" (at least that's how they're rendered in the Indigo UI, however I can't be sure what the underlying data values are).
So I try Plugins>Grafana>Explore state, and it gives me a long list of states in a selector menu. At this point, I am somewhat daunted and confused by the contents of this menu. Offhand, it looks to have several hundreds of items. I have a few questions specifically about states, state names, etc. I see some patterns, but can't tell what they mean or why the exist. There are many entries that look like they are simply the names of states (as I would expect). There are a huge number that look like "state.<stateName>". What are these and what does the "state." prefix mean?
BTW, I have several large blocks of states of the form "state.T[n]Forecast_*". There are roughly 40 states for each of n=0-12 (so > 500 total). Looks like these probably come from my sprinkler system plugin (Rachio). If nothing else, these are really blowing up the size of this menu! Anything I can do about this?
I observe that there are a bunch of states that end with ".num" suffix, and often (always?) the corresponding state name without the suffix. What's the difference, and when should I use one vs. the other? Are these "virtual" states created by the plugin? Are the .num states introduced by the Grafana plugin to make plotting data easier?
Now back to my original issue (I/OLinc)... From inspecting the device, it seems like I should be looking for something called "binary input". I see that there are states "binaryInputCount" and state.binaryInput1, which looks like the correct one. So I try Explore State on this and I see:
- Code: Select all
Grafana Home Dashboard Devices containing the property state.binaryInput1:
Grafana Home Dashboard 1. Double Garage Door ; state.binaryInput1: True (NOT INCLUDED)
Grafana Home Dashboard 2. L1 Radiant Control Relay ; state.binaryInput1: False (NOT INCLUDED)
Grafana Home Dashboard 3. L2 Radiant Control Relay ; state.binaryInput1: False (NOT INCLUDED)
Grafana Home Dashboard 4. L3O Shades ; state.binaryInput1: False (NOT INCLUDED)
Grafana Home Dashboard 5. NBR Shades ; state.binaryInput1: True (NOT INCLUDED)
Grafana Home Dashboard 6. Single Garage Door ; state.binaryInput1: True (NOT INCLUDED)
So here, I'm seeing "NOT INCLUDED" next to the two devices I know I want included ("Single Garage Door" and "Double Garage Door" ). I wonder why. I try using the "Inclusion/Exclusion Criteria" tab of the Plugins>Grafana>Configure... dialog. I select "state.binaryInput1" and hit the "add" button. Seemed to work, so perhaps this will add the state I'm looking for. I'll report back if that solves the problem.