@amit-patel said in Add Buttons to a Dimmer:
osted to github a plugin that maybe able to help with this.
It provides a single device, DimmerProxy, and has the following configuration options:
device_id - the id of an existing device which has the changeDimlevelTo action.
display_as - how the device should be displayed in the mobile-front-end. For now, it can be either switch or dimmer. This can be changed
Nice. Instead copying your helper functions from one project to next, please consider publishing them as a package of its own - or even better: please have a look at lodash which is already contained in pimatic (lodash version 3) and covers most of your helper features.
You can simply use it (package dependency needed) using the following import:
_ = env.require 'lodash'