The Shelly dimmer provides PWM control to alter the energy provided to a single load (e.g. white bulb) thus effecting a dimmer function. It also provided absolute on/off control, power utilization measurement, device temperature measurement and monitoring for overload conditions. It is not able to control inductive loads such as a fan.
It has provisions for two mains-level inputs that are designed for use as local switch inputs. Note that these are not digital level inputs. Theses switches can be wired in various ways to achive different switch control characteristics as shown below.
Additional settings are available per https://shelly-api-docs.shelly.cloud...er-sl-settings and shown below. To change a setting a browser is used with the URL set of the IP Shelly device and parameter to be changed such as below for a Shelly Dimmer at IP 192.168.0.123. Those parameters that are user-defined as shown in red.
Code:
http://[COLOR=#FF0000]192.168.0.123[/COLOR]/settings?fade_rate=[COLOR=#FF0000]2[/COLOR] http://[COLOR=#FF0000]192.168.0.123[/COLOR]/settings?fade_rate=[COLOR=#FF0000]2[/COLOR]&transition=[COLOR=#FF0000]2000[/COLOR]
pulse_mode | number | 1 - Leading Edge Dimming, 2 - Trailing Edge Dimming |
calibrate | number | 0 - Delete calibration, 1 - Start calibration |
calibrate_cancel | number | 1 - Cancel calibration |
transition | number | Transition time for on/off: 0..5000 ms |
fade_rate | number | Brightness change speed when button is pressed: 1..5 |
The Shelly Dimmer also supports a night mode. When night mode is active, turning ON the device during the set interval it will only go up to the pre-set brightness limit.. The night mode enabled with a setting as well as the time bounds and alternate brightness level. For the start and end times to be useful the timezone also needs to be setup. While all of these can be done using browser URL, it is easier to navigate to the Shelly Dimmer URL such as http://192.168.0.123. If done problematically then the following are examples.
Code:
http://[COLOR=#FF0000]192.168.0.123[/COLOR]/settings_nightmode?enabled=[COLOR=#FF0000]1[/COLOR] http://[COLOR=#FF0000]192.168.0.123[/COLOR]/settings_nightmode?enabled=[COLOR=#FF0000]1[/COLOR]&brightness=[COLOR=#FF0000]40[/COLOR]
enabled | boolean | Flag to enable/disable night mode |
start_time | boolean | Start time in format hh:mm |
end_time | boolean | End time in format hh:mm |
brightness | number | Night mode brightness in percent |
Code:
http://[COLOR=#FF0000]192.168.0.123[/COLOR]/settings/light/0?default_state=[COLOR=#ff0000]last[/COLOR] http://[COLOR=#FF0000]192.168.0.123[/COLOR]/settings/light/0?default_state=[COLOR=#ff0000]last[/COLOR]&btn_type=[COLOR=#ff0000]edge[/COLOR]
reset | any | Perform settings reset |
default_state | string | Default power-on state, one of on, off, last, switch |
auto_on | number | Default timer to turn the dimmer ON after every OFF command in seconds |
auto_off | number | Default timer to turn the dimmer OFF after every ON command in seconds |
schedule | bool | Enable scheduling timer |
schedule_rules | array of strings | String values for sheduling in ir format see description below |
btn_type | string | Input type: one of one_button, dual_button, toglle, edge ot detached |
swap_inputs | bool | Swap inputs |
btn1_on_url | string | URL to access when SW1 input is activated |
btn1_off_url | string | URL to access when SW1 input is deactivated |
btn2_on_url | string | URL to access when SW2 input is activated |
btn2_off_url | string | URL to access when SW2 input is deactivated |
out_on_url | string | URL to access when output is activated |
out_off_url | string | URL to access when output is deactivated |
Interestingly the device supports a night mode with different behaviors, but it does not provide a MQTT endpoint that shows if it is currently in day or night mode. I suppose one can look at the power level or brightness level and infer if in night mode or not if one needs to know.
Note also that it reports temperature in both F and C units. Likely you will only want one of these showing in HS. While it can be deleted as a HS device, it is better to keep the plugin and HS in sync to uncheck the "a" column checkbox for the temperature reading that is not to be shown.
For simple timer functions to change something at a given time of day and day or week the Shelly Dimmer has a built in event engine. It is most easily setup from the URL of the Shelly dimmer. The result is similar to setting up events in HS, but this is all local and does not involve HS. It only needs an internet connection so Shelly can get time update from NTP server.
Comment