Created
December 7, 2025 17:30
-
-
Save andrewjfreyer/97b78f37a9120246fa509ddca4c74620 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias: Z2M [01] Synchronize Inovelli Dimmer Properties | |
| sequence: | |
| - alias: Create array of names ids for Inovelli Blue Dimmers | |
| variables: | |
| device_name: >- | |
| {%- set device = iif(device is string, [device], device) -%} {%- if | |
| (device | length > 0) -%} | |
| {{ device }} | |
| {%- else -%} | |
| {%- set ns = namespace(devices=[]) -%} | |
| {%- for device_id in integration_entities('mqtt') | map('device_id') | reject('eq', None) | unique -%} | |
| {%- if ("dimmer" in device_attr(device_id, 'model')) -%} | |
| {%- set ns.devices = ns.devices + [device_attr(device_id, 'name')] -%} | |
| {%- endif -%} | |
| {%- endfor -%} | |
| {{ ns.devices }} | |
| {%- endif -%} | |
| - repeat: | |
| for_each: "{{ device_name }}" | |
| sequence: | |
| - variables: | |
| dimmer_ieee: "{{ repeat.item }}" | |
| - repeat: | |
| for_each: | |
| - "{\"outputMode\":\"Dimmer\"}" | |
| - "{\"ledIntensityWhenOn\":\"{{LEDStripBrightnessOn}}\"}" | |
| - "{\"ledIntensityWhenOff\":\"{{LEDStripBrightnessOff}}\"}" | |
| - "{\"ledColorWhenOn\":\"{{LEDStripColorOn}}\"}" | |
| - "{\"ledColorWhenOff\":\"{{LEDStripColorOff}}\"}" | |
| - "{\"periodicPowerAndEnergyReports\":\"0\"}" | |
| - "{\"activeEnergyReports\":\"0\"}" | |
| - "{\"activePowerReports\":\"0\"}" | |
| - "{\"doubleTapUpToParam55\":\"Enabled\"}" | |
| - "{\"doubleTapDownToParam56\":\"Enabled\"}" | |
| - "{\"brightnessLevelForDoubleTapDown\":\"45\"}" | |
| - "{\"brightnessLevelForDoubleTapUp\":\"127\"}" | |
| - "{\"buttonDelay\":\"{{ButtonPressDelay}}\"}" | |
| - "{\"defaultLevelLocal\":\"254\"}" | |
| - "{\"defaultLevelRemote\":\"254\"}" | |
| - "{\"dimmingSpeedDownLocal\":\"127\"}" | |
| - "{\"dimmingSpeedDownRemote\":\"127\"}" | |
| - "{\"dimmingSpeedUpLocal\":\"127\"}" | |
| - "{\"dimmingSpeedUpRemote\":\"{{DimmingSpeedDefault}}\"}" | |
| - "{\"doubleTapClearNotifications\":\"Enabled (Default)\"}" | |
| - "{\"firmwareUpdateInProgressIndicator\":\"Enabled\"}" | |
| - "{\"loadLevelIndicatorTimeout\":\"Stay On\"}" | |
| - "{\"maximumLevel\":\"254\"}" | |
| - "{\"rampRateOffToOnLocal\":\"127\"}" | |
| - "{\"rampRateOffToOnRemote\":\"127\"}" | |
| - "{\"rampRateOnToOffLocal\":\"127\"}" | |
| - "{\"rampRateOnToOffRemote\":\"127\"}" | |
| - "{\"singleTapBehavior\":\"Down Always Off\"}" | |
| - "{\"smartBulbMode\":\"Disabled\"}" | |
| - "{\"stateAfterPowerRestored\":\"255\"}" | |
| - "{\"switchType\":\"Single-Pole Full Sine Wave\"}" | |
| - "{\"outputMode\":\"Dimmer\"}" | |
| sequence: | |
| - action: mqtt.publish | |
| data: | |
| topic: z2m/{{dimmer_ieee}}/set | |
| qos: "0" | |
| payload: "{{ repeat.item }}" | |
| - alias: Wait 2 | |
| delay: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 2 | |
| milliseconds: 0 | |
| description: Synchronize functional properties among all Inovelli Blue dimmers via Z2M. | |
| icon: mdi:cog-outline | |
| variables: | |
| LEDStripColorOn: 255 | |
| LEDStripColorOff: 0 | |
| LEDStripBrightnessOn: 100 | |
| LEDStripBrightnessOff: 10 | |
| ButtonPressDelay: 100ms | |
| DimmingSpeedDefault: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment