Switch
One SwitchEntity is created per PWM channel where pwm#X#onoff = true and pwm#X#color != "".
These channels are treated as binary (on/off) — the device still accepts a PWM value, but the controller UI presents them as switches.
Reference
switch
Classes
SunRiserMaintenanceSwitch
Bases: CoordinatorEntity[SunRiserCoordinator], SwitchEntity
Maintenance mode switch — freezes all PWM channels on the device.
Source code in custom_components/sunriser/switch.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
SunRiserSwitch
Bases: CoordinatorEntity[SunRiserCoordinator], SwitchEntity
On/off PWM channel (pwm#X#onoff = true) on a SunRiser device.
Source code in custom_components/sunriser/switch.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | |
SunRiserTimelapseSwitch
Bases: CoordinatorEntity[SunRiserCoordinator], SwitchEntity
Time-lapse (timewarp) mode — runs the day/week planner at ~1800× speed.
Source code in custom_components/sunriser/switch.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
SunRiserDSTAutoSwitch
Bases: CoordinatorEntity[SunRiserCoordinator], SwitchEntity, RestoreEntity
Automatic DST tracking — keeps the device summertime config in sync with the HA timezone.
Source code in custom_components/sunriser/switch.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |