You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Sonoff-SPM.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ In addition to installing the ``tasmota32.bin`` image some configuration might b
46
46
47
47
### Relay mapping
48
48
49
-
After a restart the ARM firmware starts to scan for available 4Relay modules. Every module has a unique id which is send to Tasmota in random order. For a user to pinpoint a physical set of four relays it is therefor needed to "map" the scanned modules once. Tasmota stores the id's in a mapping table build using the command ``SspmMap <scanned module number>,<scanned module number>,..`` where the first entry will map to physical relays 1 to 4, the second entry will map to physical relays 5 to 8 etc. The scanned module information needed is displayed on the console during restart or on request by executing command ``SspmScan`` with a ``weblog 2`` setting.
49
+
After a restart the ARM firmware starts to scan for available 4Relay modules. Every module has a unique id which is send to Tasmota in random order. For a user to pinpoint a physical set of four relays it is therefor needed to "map" the scanned modules once. Tasmota stores the id's in a mapping table build using the command ``SSPMMap <scanned module number>,<scanned module number>,..`` where the first entry will map to physical relays 1 to 4, the second entry will map to physical relays 5 to 8 etc. The scanned module information needed is displayed on the console during restart or on request by executing command ``SSPMScan`` with a ``weblog 2`` setting.
50
50
51
51
!!! Note
52
52
Scanning takes over 20 seconds so be patient
@@ -61,20 +61,20 @@ Look for the below information during a restart for a two 4Relay module system:
61
61
13:54:05.401 SPM: 4Relay 2 (mapped to 1) type 130 version 1.0.0 found with id 6B7E3237393734134B353637
62
62
```
63
63
64
-
In this case the two modules are mapped using command ``SspmMap 2,1``. As Tasmota does store the ids of the 4Relay modules a future hussle of the received modules will keep the physical mapping correct.
64
+
In this case the two modules are mapped using command ``SSPMMap 2,1``. As Tasmota does store the ids of the 4Relay modules a future hussle of the received modules will keep the physical mapping correct.
65
65
66
66
## Commands List
67
67
68
68
The following SPM specific commands are supported.
69
69
70
70
Command|Parameters
71
71
:---|:---
72
-
SspmDisplay<aclass="cmnd"id="SspmDisplay"></a>|Change GUI display between rotating display of all scanned relays, of all scanned relays that are powered on or select a group of four relays using a tab<BR>`0` = Display all relays<BR>`1` = Display powered on relays<BR>`2` = Provide user selectable tabs to display four relays within a 4Relay module
73
-
SspmEnergyTotal<x\><aclass="cmnd"id="SspmEnergyTotal"></a>|(P)reset total energy in kWh without today's energy for relay <x\><BR>`0` = preset with total of history<BR>`0.01..262143.99` = set value in kWh
74
-
SspmEnergyYesterday<x\><aclass="cmnd"id="SspmEnergyYesterday"></a>|(P)reset energy yesterday in kWh for relay <x\><BR>`0.01..262143.99` = set value in kWh
75
-
SspmHistory<x\><aclass="cmnd"id="SspmHistory"></a>|Show daily energy for relay <x\> of up to 180 days
SspmLog<x\><aclass="cmnd"id="SspmLog"></a>|Show relay <x\> power state change and cause
78
-
SspmMap<aclass="cmnd"id="SspmMap"></a>|Map scanned SPM-4Relay modules to physical location. Use unique numbers for all fields<BR>`0` = rescan modbus for SPM-4Relay modules and reset mapping to default. This takes at least 20 seconds<BR>`3,4,1,2` = map scanned module 1 to physical module 3 containing relays 9 to 12, module 2 to 4 with relays 13 to 16, module 3 to 1 with relays 1 to 4 and module 4 to 2 with relays 5 to 8
79
-
SspmOverload<x\><aclass="cmnd"id="SspmOverload"></a>|Set overload detection criteria for relay <x\> <BR>`0` = reset and disable overload detection to scanned module criteria<BR>`<delay>,<min_power>,<max_power>,<min_voltage>,<max_voltage>,<max_current>` = set any or all overload detection criteria<BR>`0,0.10,4400.00,0.10,240.00,20.00` = enable overload detection with default values<BR>`9,0,22.1` = enable max_power over 22.1W detection after 9 seconds<BR>`0,0,0,0,235.2` = enable immediate max_voltage over 235.2V detection
80
-
SspmScan<aclass="cmnd"id="SspmScan"></a>|Rescan modbus for SPM-4Relay modules. This takes at least 20 seconds
72
+
SSPMDisplay<aclass="cmnd"id="SspmDisplay"></a>|Change GUI display between rotating display of all scanned relays, of all scanned relays that are powered on or select a group of four relays using a tab<BR>`0` = Display all relays<BR>`1` = Display powered on relays<BR>`2` = Provide user selectable tabs to display four relays within a 4Relay module
73
+
SSPMEnergyTotal<x\><aclass="cmnd"id="SspmEnergyTotal"></a>|(P)reset total energy in kWh without today's energy for relay <x\><BR>`0` = preset with total of history<BR>`0.01..262143.99` = set value in kWh
74
+
SSPMEnergyYesterday<x\><aclass="cmnd"id="SspmEnergyYesterday"></a>|(P)reset energy yesterday in kWh for relay <x\><BR>`0.01..262143.99` = set value in kWh
75
+
SSPMHistory<x\><aclass="cmnd"id="SspmHistory"></a>|Show daily energy for relay <x\> of up to 180 days
SSPMLog<x\><aclass="cmnd"id="SspmLog"></a>|Show relay <x\> power state change and cause
78
+
SSPMMap<aclass="cmnd"id="SspmMap"></a>|Map scanned SPM-4Relay modules to physical location. Use unique numbers for all fields<BR>`0` = rescan modbus for SPM-4Relay modules and reset mapping to default. This takes at least 20 seconds<BR>`3,4,1,2` = map scanned module 1 to physical module 3 containing relays 9 to 12, module 2 to 4 with relays 13 to 16, module 3 to 1 with relays 1 to 4 and module 4 to 2 with relays 5 to 8
79
+
SSPMOverload<x\><aclass="cmnd"id="SspmOverload"></a>|Set overload detection criteria for relay <x\> <BR>`0` = reset and disable overload detection to scanned module criteria<BR>`<delay>,<min_power>,<max_power>,<min_voltage>,<max_voltage>,<max_current>` = set any or all overload detection criteria<BR>`0,0.10,4400.00,0.10,240.00,20.00` = enable overload detection with default values<BR>`9,0,22.1` = enable max_power over 22.1W detection after 9 seconds<BR>`0,0,0,0,235.2` = enable immediate max_voltage over 235.2V detection
80
+
SSPMScan<aclass="cmnd"id="SspmScan"></a>|Rescan modbus for SPM-4Relay modules. This takes at least 20 seconds
0 commit comments