Skip to content

Commit

Permalink
Dimmer lib updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Jun 12, 2024
1 parent 0b4a016 commit e1dbcfb
Show file tree
Hide file tree
Showing 36 changed files with 1,795 additions and 809 deletions.
8 changes: 4 additions & 4 deletions data/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h1>YaSolR Configuration</h1>
const supportedConfig = {

"Output 1 Control": "TITLE",
o1_dim_limit: ["Dimmer Limiter (limit dimmer level 0-10000)", "uint"],
o1_dim_limit: ["Dimmer Limiter (limit dimmer duty 0-4095)", "uint"],
o1_ad_enable: ["Dimmer Automatic Control", "switch"],
o1_ab_enable: ["Bypass Automatic Control", "switch"],
o1_days: ["Bypass Week Days", "string"],
Expand All @@ -73,7 +73,7 @@ <h1>YaSolR Configuration</h1>
o1_temp_stop: ["Bypass Stop Temperature (C)", "uint"],

"Output 2 Control": "TITLE",
o2_dim_limit: ["Dimmer Limiter (limit dimmer level 0-10000)", "uint"],
o2_dim_limit: ["Dimmer Limiter (limit dimmer duty 0-4095)", "uint"],
o2_ad_enable: ["Dimmer Automatic Control", "switch"],
o2_ab_enable: ["Bypass Automatic Control", "switch"],
o2_days: ["Bypass Week Days", "string"],
Expand Down Expand Up @@ -118,11 +118,11 @@ <h1>YaSolR Configuration</h1>
o1_dim_enable: ["Output 1 Dimmer", "switch"],
o1_ds18_enable: ["Output 1 DS18", "switch"],
o1_pzem_enable: ["Output 1 PZEM", "switch"],
o1_relay_enable: ["Output 1 Relay (Bypass)", "switch"],
o1_relay_enable: ["Output 1 Relay", "switch"],
o2_dim_enable: ["Output 2 Dimmer", "switch"],
o2_ds18_enable: ["Output 2 DS18", "switch"],
o2_pzem_enable: ["Output 2 PZEM", "switch"],
o2_relay_enable: ["Output 2 Relay (Bypass)", "switch"],
o2_relay_enable: ["Output 2 Relay", "switch"],
relay1_enable: ["Enable Relay 1", "switch"],
relay2_enable: ["Enable Relay 2", "switch"],
ds18_sys_enable: ["Router DS18", "switch"],
Expand Down
3 changes: 2 additions & 1 deletion include/YaSolR.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <MycilaTaskMonitor.h>
#include <MycilaTime.h>
#include <MycilaTrafficLight.h>
#include <MycilaZeroCrossDetection.h>
#include <MycilaZCD.h>

#ifdef APP_MODEL_TRIAL
#include <MycilaTrial.h>
Expand Down Expand Up @@ -75,6 +75,7 @@ extern Mycila::RouterOutput output2;
extern Mycila::RouterRelay routerRelay1;
extern Mycila::RouterRelay routerRelay2;
extern Mycila::TrafficLight lights;
extern Mycila::ZCD zcd;

extern Mycila::TaskManager ioTaskManager;
extern Mycila::Task haDiscoveryTask;
Expand Down
16 changes: 8 additions & 8 deletions include/YaSolRWebsite.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ namespace YaSolR {
Tab _output1Tab = Tab(&dashboard, "\u2600 Output 1");
Card _output1State = Card(&dashboard, STATUS_CARD, "Status", DASH_STATUS_IDLE);
Card _output1DS18State = Card(&dashboard, TEMPERATURE_CARD, "Temperature", "°C");
Card _output1DimmerSlider = Card(&dashboard, SLIDER_CARD, "Dimmer Level Manual Control", "", 0, YASOLR_DIMMER_MAX_LEVEL, 1);
Card _output1DimmerSliderRO = Card(&dashboard, PROGRESS_CARD, "Dimmer Level", "", 0, YASOLR_DIMMER_MAX_LEVEL, 1);
Card _output1DimmerSlider = Card(&dashboard, SLIDER_CARD, "Dimmer Duty Manual Control", "", 0, YASOLR_DIMMER_MAX_LEVEL, 1);
Card _output1DimmerSliderRO = Card(&dashboard, PROGRESS_CARD, "Dimmer Duty", "", 0, YASOLR_DIMMER_MAX_LEVEL, 1);
Card _output1Bypass = Card(&dashboard, BUTTON_CARD, "Bypass");
Card _output1BypassRO = Card(&dashboard, STATUS_CARD, "Bypass");
Card _output1Power = Card(&dashboard, ENERGY_CARD, "Power", "W");
Expand All @@ -101,7 +101,7 @@ namespace YaSolR {
Card _output1Energy = Card(&dashboard, ENERGY_CARD, "Energy", "kWh");
Card _output1DimmerAuto = Card(&dashboard, BUTTON_CARD, "Dimmer Automatic Control");
Card _output1DimmerLimiter = Card(&dashboard, SLIDER_CARD, "Dimmer Limiter", "", 0, YASOLR_DIMMER_MAX_LEVEL, 1);
Card _output1AutoBypass = Card(&dashboard, BUTTON_CARD, "Bypass Automatic Control");
Card _output1BypassAuto = Card(&dashboard, BUTTON_CARD, "Bypass Automatic Control");
Card _output1AutoStartWDays = Card(&dashboard, WEEK_SELECTOR_CARD, "Bypass Week Days");
Card _output1AutoStartTime = Card(&dashboard, TEXT_INPUT_CARD, "Bypass Start Time");
Card _output1AutoStoptTime = Card(&dashboard, TEXT_INPUT_CARD, "Bypass Stop Time");
Expand All @@ -111,8 +111,8 @@ namespace YaSolR {
Tab _output2Tab = Tab(&dashboard, "\u2600 Output 2");
Card _output2State = Card(&dashboard, STATUS_CARD, "Status", DASH_STATUS_IDLE);
Card _output2DS18State = Card(&dashboard, TEMPERATURE_CARD, "Temperature", "°C");
Card _output2DimmerSlider = Card(&dashboard, SLIDER_CARD, "Dimmer Level Manual Control", "", 0, YASOLR_DIMMER_MAX_LEVEL, 1);
Card _output2DimmerSliderRO = Card(&dashboard, PROGRESS_CARD, "Dimmer Level", "", 0, YASOLR_DIMMER_MAX_LEVEL, 1);
Card _output2DimmerSlider = Card(&dashboard, SLIDER_CARD, "Dimmer Duty Manual Control", "", 0, YASOLR_DIMMER_MAX_LEVEL, 1);
Card _output2DimmerSliderRO = Card(&dashboard, PROGRESS_CARD, "Dimmer Duty", "", 0, YASOLR_DIMMER_MAX_LEVEL, 1);
Card _output2Bypass = Card(&dashboard, BUTTON_CARD, "Bypass");
Card _output2BypassRO = Card(&dashboard, STATUS_CARD, "Bypass");
Card _output2Power = Card(&dashboard, ENERGY_CARD, "Power", "W");
Expand All @@ -125,7 +125,7 @@ namespace YaSolR {
Card _output2Energy = Card(&dashboard, ENERGY_CARD, "Energy", "kWh");
Card _output2DimmerAuto = Card(&dashboard, BUTTON_CARD, "Dimmer Automatic Control");
Card _output2DimmerLimiter = Card(&dashboard, SLIDER_CARD, "Dimmer Limiter", "", 0, YASOLR_DIMMER_MAX_LEVEL, 1);
Card _output2AutoBypass = Card(&dashboard, BUTTON_CARD, "Bypass Automatic Control");
Card _output2BypassAuto = Card(&dashboard, BUTTON_CARD, "Bypass Automatic Control");
Card _output2AutoStartWDays = Card(&dashboard, WEEK_SELECTOR_CARD, "Bypass Week Days");
Card _output2AutoStartTime = Card(&dashboard, TEXT_INPUT_CARD, "Bypass Start Time");
Card _output2AutoStoptTime = Card(&dashboard, TEXT_INPUT_CARD, "Bypass Stop Time");
Expand Down Expand Up @@ -202,11 +202,11 @@ namespace YaSolR {
Card _output1Dimmer = Card(&dashboard, BUTTON_CARD, "Output 1 Dimmer");
Card _output1DS18 = Card(&dashboard, BUTTON_CARD, "Output 1 DS18");
Card _output1PZEM = Card(&dashboard, BUTTON_CARD, "Output 1 PZEM");
Card _output1Relay = Card(&dashboard, BUTTON_CARD, "Output 1 Relay (Bypass)");
Card _output1Relay = Card(&dashboard, BUTTON_CARD, "Output 1 Relay");
Card _output2Dimmer = Card(&dashboard, BUTTON_CARD, "Output 2 Dimmer");
Card _output2DS18 = Card(&dashboard, BUTTON_CARD, "Output 2 DS18");
Card _output2PZEM = Card(&dashboard, BUTTON_CARD, "Output 2 PZEM");
Card _output2Relay = Card(&dashboard, BUTTON_CARD, "Output 2 Relay (Bypass)");
Card _output2Relay = Card(&dashboard, BUTTON_CARD, "Output 2 Relay");
Card _relay1 = Card(&dashboard, BUTTON_CARD, "Relay 1");
Card _relay2 = Card(&dashboard, BUTTON_CARD, "Relay 2");
Card _routerDS18 = Card(&dashboard, BUTTON_CARD, "Router DS18");
Expand Down
Loading

0 comments on commit e1dbcfb

Please sign in to comment.