Matter from ATX LED

Matter
from
ATX LED
ML-SML-M2D
ML-SML-M2D
In Leviton 47605 format – with PSE-8D
ML-DIN-M2D
ML-DIN-M2D

ATX LED Matter to DALI Bridge – ML-SML-M2D or ML-DIN-M2D

  • Matter communication standard
  • 64 DALI addresses
  • 16 DALI groups
  • Automatically assigns DALI addresses without changing existing addresses
  • Automatically provides DALI bus power if no external supply detected
  • Works with all Matter border routers
  • Supports DT6 (fixed) and DT8 devices (tunable white)
  • Maintains sync between ATX LED Switches, ATX LED Hubs, and Cloud control
  • Local and remote control
  • Works with or without the ATX LED Hub
  • Does not change existing DALI addresses or configurations
  • Fits into Leviton 47605 box hole pattern between full-size SML devices (DIN rail version also available)
  • Status page with:
    • DALI bus voltage
    • DALI bus current
    • Up to 8 system power supplies (typically 51V) or 4 supplies with 24V
    • WiFi quality
    • Network ping response times
    • Geographic location
    • Real-time wattage
    • Active/missing devices
  • Current remote diagnostics to cloud server sensors

Specifications for ATX LED Matter to DALI

  • 64 DALI devices – each can be exposed to Matter or hidden, each has a friendly name
  • 16 DALI groups – each can be exposed to Matter or hidden, each has a friendly name
  • 8 Power Supply devices – voltages of up to 8 power supplies monitored (always 51V on M2D)
  • 1 DALI Bus device – shows DALI bus power (12V or 0V in M2D)
  • DIN rail or SML mounting
  • Scheduling handled by Matter
  • Error reporting via email for power supply changes
  • Macros for address forwarding if needed
  • Automatic address assignment if new devices detected
  • DT6 to DT8 conversion script available (Python)
  • Grouping method to assign/unassign any address to any of 16 groups
  • 8 Virtual Power Supplies to report voltages
  • 1 DALI Bus device for DALI bus voltage monitoring

ESP32 Pinout / Functions

Pin Pin Name Connected To Function
3Enable5.1k PullupBoot
37GPIO 51
39IO0-48V Cmeasure Power Supply C voltage, gain 25
38IO1-48V Dmeasure Power Supply D voltage, gain 25
6IO6-48V Ameasure Power Supply A voltage, gain 25
7IO7-48V Bmeasure Power Supply B voltage, gain 25
12IO8SW1Operation Mode: Open = Use ALL Matter Control, Close = Installer mode
17IO9DALI CurrentMeasure Voltage during transient 0.5 Ohm resistor, gain 1.5
18IO10DALI VoltageMeasure Voltage, gain 5.8
19IO11DALI TestTurns on 0.4V load to measure current
20IO12DALI Power EnableEnables power when High, Sources 80 mA
21IO13DALI Current BoostSources 180 mA

Power On DALI Power Algorithm

Exel Enable = active low – pull down
DALI Hi Current = active low – no pull down
DALI Current Test = active low – pull down

DALI voltage test = read back real time voltage (1V = 5.8V on bus)
DALI current = read back real time current (0.1V = 200 mA)
Type External Power Internal Power Exel HiCurrent
External power max240 mA0 mA10
External typical~160 mA0 mA if DALI V > 14.510
External power lownot enough80 mA if DALI V > 5V10
External power low, internal lownot enough0 mA00
External power low, internal highnot enough240 mA max01
No external power, internal lownone80 mA if DALI V > 14.500
No external power, internal highnone240 mA DALI V > 1401
Step Description Exel HiCurrent Test Pin Test Condition If Fail
NoneNot ESP Running, system boot000unknown
AESP starts000
BTest External Power100is DALI V > 14 - 14.5turn Exel On
CTest External Current100is DALI V > 14.5 - fail Offturn Exel Off
DSet Optimal Current110is DALI V > 14 - 14.4turn High Current
FinishDALI V > 14.5, DALI Hi > 240 mA0??

Power On DALI Device Management

DALI BUS State DALI Voltage Test
IdleLogic 1
Manchester dataLogic 0 < 800us
FAILLogic 0 > 100msdo nothing - set flag
FAIL - IdleLogic 1restart after 5 seconds
onboard DALI power is on by hardware pull down
- measure DALI bus voltage
- if Voltage is > 14 volts and current is less than 100 mA, enable 480 mA current
- measure DALI bus current, set DALI Test
  • Read bus device status and level, DT8
  • Check for unassigned devices
  • Address unassigned and leave existing unchanged
  • Read UPC codes
  • Name unnamed devices with the friendly name of the UPC code + short address
  • Read groups
  • Export short address and groups to Matter

Power Supply Status Reporting

4 inputs from the House Power panel: A, B, C, D. Each has a gain of 25, measurement range of 2.5 to 75 volts.

- If input is between 2.85V and 7.25V: input has no power supply, report the voltage.
- If input is between 8V and 23.4V: count the number of power supplies as 1 (per A, B, C, D).
- Plus the values in the table below:
A, B, C = 4V = 1+1+1 = 3
D = 15V = 2
Total is 5.

Using this method, up to 8 power supplies can be counted, reporting voltage for each supply.

Example: Attached Power Supplies: 5 (500 Watt)
Voltage 53.6V, 53.5V, 11V
Power supply names: PC, PB, PD, PC+PD

Example: Attached Power Supplies: 2
Voltage 53V, 5V
Power supply names: A, C

Example: Attached Power Supplies: 4 (400 Watt)
Voltage 53.6V, 53.5V, 5V
Power supply names: PC, PC+PD, PC

Power Supply Voltage String Mapping

Voltage V # count to add Wattage String replaces B or D
1.50+100PC+PD
60+200PC+PD
81+300PB+PC+PD
101+400PB+PC+PD
121+500PA+PB+PC
12.51+600PA+PB+PC
152+800PA+PB+PC+PD
15.51+900PA+PB+PC
182+1200PA+PB+PC+PD
191+1300PA+PB+PC
212+1600PA+PB+PC+PD
21.52+1700PA+PB+PC+PD
>23.600B or D is displayed
<4.800A or C is displayed

Cloud Reporting

Once per hour, if there is a change in brightness or % good or Last CCT, report this:

https://xxxxxx/adaph?eh=26dr-mdv-0kr-68db-8574-85b9&m=1852&n=1&w=51gw&6&mac=4c:20:d2:4a:6a:54&sn=302d183754&mpn=9715508f&vers=57&wifi=9001.8.16f-r2

t= temperature
h= humidity
r= (bitwise)
b= brightness level after DALI ARC command
d= DALI voltage (57 = 10V or 250)
v= DALI voltage
m= DALI current measured during test
fw= Hardware Version (1 = Old, 2 = 9M4)
ver= Firmware version (1.1.10f)
up= Run hours since boot (1 report/hour)
lac= mac
lsn= SN
wifi= WiFi RSSI Strength ("update only if network change")
g= % good (Good devices from last ping)

Example:
https://xxxxxx/adaph?eh=26dr-mdv-0kr-68db-8574-85b9&m=1852&n=1&w=51gw&6&mac=4c:20:d2:4a:6a:54&sn=302d183754&mpn=9715508f&vers=57&wifi=9001.8.16f-r2

Bugs in Version 1.1.10

  • Detect UPC code and user approvals to default names
  • Detect groups and allow the user to mark default groups (X to Y)
  • DTR settings across reboot not consistent
  • AJ power supply float not read
  • AJ: Command of 199.153 to set CCT must be sent before command 153 to get DT8 result
  • DALI input errors on voltages - 1% too tiny, should be 2%
  • Display PC+PD voltages safely and avoid B/D displayed
  • Calculation for voltages between 7.2V and 23.4V missing - see documentation
  • Google support
  • Don't write memory registers in 510 or 511, send CCT values as % 510 or 511 ranges stored on the device

New Features to add to Version 1.1.10

  • Display MAC address on status page.
  • Read all power on values at boot. If a device has a power on value != 2, and the device ARC changes by single address or group, write the new ARC to the power on level.
  • After DALI bus voltage is restored after an outage, scan devices with power on value != 2.
  • At boot, read all group assignments and store them. If a group ARC changes, detect the members of the group and, if they have power on != 2, update power on if Group ARC changes.
  • Display the last 25 DALI logs on Status.
  • Post status info to cloud (see logging).

How to Pair

Ensure your phone is on a 2.4GHz network.

Apple Home: Add Matter device, scan QR code.

In Home, open Home → Bridge → Settings → Enter pairing mode → Get code
In Alexa, add other device, find Matter, enter pairing code

Google Home: Add Matter device, scan QR code.

In Home, open Home → Bridge → Settings → Enter pairing mode → Get code
In Google, add device, enter pairing code