Commit Graph

39 Commits

Author SHA1 Message Date
Theo Arends e6cafcfa42 Sonoff SPM increase max number of relays
Sonoff SPM increase max number of relays supported to 32 (8 SPM-4Relay modules)
2022-02-18 11:42:56 +01:00
Theo Arends d004522332 Add SSPM force mapping 2022-02-16 12:09:04 +01:00
Theo Arends 3d2c9945a8 Fix SSPM energy yesterday when zero 2022-02-12 16:37:48 +01:00
Theo Arends 85d8bcd241 Fix duplicate initial totals 2022-02-07 16:03:59 +01:00
Theo Arends 6835eabc39 Fix SPM total updates for all relays 2022-02-06 12:21:29 +01:00
Theo Arends b237d49ae6
Fix initial energy setting 2022-02-06 09:54:32 +01:00
Theo Arends f218660b71 Revert CalVer in favour of SemVer 2022-02-05 15:50:04 +01:00
Theo Arends a995a6e78c Clean up SPM code 2022-02-05 12:20:13 +01:00
Theo Arends 9c1adc2bdc Add postpone flash writes for SPM energy updates 2022-02-05 11:29:35 +01:00
Theo Arends 7669c9b471 Fix Sonoff SPM energy total/yesterday
- Fix Sonoff SPM energy total/yesterday
- Add energy yesterday persistence
- Add SspmEnergyYesterday command
- Add SspmOverload command
- Add SPI support
2022-02-04 11:22:09 +01:00
Theo Arends 15c3476698 Add more error checking to SPM 2022-01-26 13:59:55 +01:00
Theo Arends 62458e3676 Add command ``SspmEnergyTotal<relay>``
Add command ``SspmEnergyTotal<relay>`` to (p)reset Sonoff SPM total energy without today's energy
2022-01-25 16:51:40 +01:00
Theo Arends d7664c02a7 Remove zero values from SspmHistory
Remove zero values from SspmHistory (#13447)
2022-01-25 12:19:56 +01:00
Theo Arends bb5cf22d0a Add command ``SspmLog<relay> [x]``
Add command ``SspmLog<relay> [x]`` to retrieve relay power state change and cause logging
2022-01-24 15:38:58 +01:00
Theo Arends dcfdb78935 Add/Release Sonoff SPM commands
Add/Release Sonoff SPM commands:
- Command ``SspmDisplay 1`` to display Sonoff SPM energy data in GUI for relays powered on only
- Command ``SspmHistory<relay>`` to retrieve daily energy of last six month (as defined by ARM firmware)
- Command ``SspmIAmHere<relay>`` to (faintly) blink Sonoff SPM-4Relay module error light of requested relay
- Command ``SspmScan`` to rescan Sonoff SPM modbus
2022-01-24 11:47:19 +01:00
Theo Arends 5eb25ef1c4 Add SSPM mapping warning
Add SSPM mapping warning when  4Relay modules are added, removed or inserted
2022-01-14 12:45:50 +01:00
Theo Arends 8398c9c459 Move all RAM usage to heap
Move all register usage to heap and add mapped information to relay scan
2022-01-10 13:52:24 +01:00
Theo Arends a01cd1ee82 Change SPM logging
Change SPM logging and add Main unit version number
2022-01-10 10:54:55 +01:00
Theo Arends b98e82ae3d Add Sonoff SPM module mapping
Add Sonoff SPM command ``SspmMap 2,1,..`` to map scanned module to physical module (#14281)
2022-01-06 18:01:35 +01:00
Theo Arends fce0104035 Add SPM Relay scan timeout message 2022-01-05 12:43:26 +01:00
Theo Arends a26f2dbc28 Fix SPM power switching over 8 relays
Fix SPM power switching over 8 relays (#14281)
2022-01-05 10:44:58 +01:00
Theo Arends bfdf34813f Fix SPM power switching over 8 relays
Fix SPM power switching over 8 relays (#14281)
2022-01-04 23:10:19 +01:00
Theo Arends d8ed99830c Fix SPM energy display rotation in GUI
Fix SPM energy display rotation in GUI (#14281)
2022-01-04 22:30:08 +01:00
Theo Arends 730f3451ac Clean up code 2021-12-30 13:26:32 +01:00
Theo Arends 0bfa5af3ad Fix Sonoff SPM relay GUI display
Fix Sonoff SPM relay GUI display (#13447)
2021-12-29 17:46:52 +01:00
Theo Arends 41e63321f1 Add SPM yellow error led support 2021-12-06 15:11:59 +01:00
Theo Arends 1a448ae364 Fix SPM energy energy values 2021-12-06 10:57:25 +01:00
Theo Arends 1d3a3ee415 Make SspmDisplay persistent 2021-12-04 16:14:08 +01:00
Theo Arends 3a92189c44 Add command SspmDisplay
Add command ``SspmDisplay 0/1`` to change GUI display to powered on relays only.
2021-12-04 12:26:19 +01:00
Theo Arends 488c84e61b Fix JSON SSPM energy today/yesterday 2021-12-03 14:29:41 +01:00
Theo Arends 52c4d2a1f7 Refactoring 2021-11-26 11:07:56 +01:00
Theo Arends 4f67e0cdb8 Add more comments 2021-11-25 10:27:20 +01:00
Theo Arends bb6bc41cb0 Add more information 2021-11-22 18:06:57 +01:00
Theo Arends da460d5d7a Fix L indexes 2021-11-22 12:30:08 +01:00
Theo Arends 8ca727a523 Fix SSPM Gui energy display 2021-11-22 12:21:07 +01:00
Theo Arends 116da1f5d2 Fix SPM JSON Energy Total values 2021-11-21 14:32:57 +01:00
Theo Arends 010f8f8d37 Add ethernet support to Sonoff SPM
- Add ethernet support to Sonoff SPM
- Update template to "Sonoff SPM (POC2)" (#13447)
2021-11-21 14:15:38 +01:00
Theo Arends efb77a6547 Rewrite Sonoff SPM state machine
- Rewrite Sonoff SPM state machine for easier maintenance
- Fix handling user output when initiating a scan
2021-11-20 17:29:10 +01:00
Theo Arends b19d1c580f Add Sonoff SPM POC
Add Sonoff SPM POC (#13447)
2021-11-17 17:25:16 +01:00