-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reason field for inputs and output state changes #138
Comments
My openhab installation went to pot this week so I’m jumping ship. I came here today to check progress and specifically find out if this setup could distinguish between a dimmer button press and a group update. Take this as my plus one vote for this feature. I will be moving my system over to Insteon-mqtt in the coming weeks as I have time, I’m excited to join! |
If anyone wants to help test the reason field, I've added an initial cut for the Switch device and it appears to be working. I still need to add support for the other devices and add docs and tests. These updates are available on the 'reason' branch. Changes include:
So you can add {{reason}} to the state template to see the reason in the output state MQTT message. Then you can pass input reasons in via MQTT for customization or just use the standard reasons shown above in automation processing. |
Hi Ted, |
Pull the latest reason branch down - I pushed an update yesterday that adds reason to every device except thermostat. I haven't time to test anything but switch yet but the code was mostly a copy/paste so it will probably work ok (famous last words). |
This is now finished and merged into the dev branch. It will be available with the next release (once I figure out how to build the hassio repo's and docker images). |
ps: reason support was added for these devices: Outlet, Switch, Dimmer, FanLinc, KeypadLinc. I didn't add this to IOLinc or Thermostat because of there added complexity. |
From HA forum:
The text was updated successfully, but these errors were encountered: