-Fixes #52
-Adds one state/json topic with JSON payloads corresponding to button ON events and dimmer .val changes.
-Removes all explicit item definitions for every single page/button in openHAB configuration, keeping only a single MQTT item to receive the JSON status events (cut down items file by ~250 lines)
-Modifies openHAB rules to handle the JSON states (cuts down rules file by ~100 lines)
I'm creating a PR, since this affects the Arduino code and not just the OH configuration. The impact should be minimal, as the extra topic/event sends are performed at the same time as individual button topic updates.
-Fixes #52 -Adds one state/json topic with JSON payloads corresponding to button ON events and dimmer .val changes. -Removes all explicit item definitions for every single page/button in openHAB configuration, keeping only a single MQTT item to receive the JSON status events (cut down items file by ~250 lines) -Modifies openHAB rules to handle the JSON states (cuts down rules file by ~100 lines)