aderusha / HASwitchPlate

LCD touchscreen for Home Automation
MIT License
730 stars 128 forks source link

JSON state topic for button ON states and dimmer values and greatly reduced OH config #54

Closed bkpsu closed 5 years ago

bkpsu commented 5 years ago

-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)