File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import "./App.css";
31
31
import { useMqttSubscription } from "./mqtt" ;
32
32
import { ApiPickerButton , MqttButton } from "./MqttComponents" ;
33
33
import {
34
+ IOBusFaultNotification ,
34
35
RebootNotification ,
35
36
UpdateNotification ,
36
37
ProgressNotification ,
@@ -158,6 +159,7 @@ function Notifications() {
158
159
< ProgressNotification />
159
160
< UpdateNotification />
160
161
< LocatorNotification />
162
+ < IOBusFaultNotification />
161
163
</ >
162
164
) ;
163
165
}
Original file line number Diff line number Diff line change @@ -487,3 +487,19 @@ export function LocatorNotification() {
487
487
</ Alert >
488
488
) ;
489
489
}
490
+
491
+ export function IOBusFaultNotification ( ) {
492
+ const overload = useMqttSubscription < boolean > ( "/v1/iobus/feedback/fault" ) ;
493
+
494
+ return (
495
+ < Alert
496
+ statusIconAriaLabel = "Warning"
497
+ type = "warning"
498
+ visible = { overload === true }
499
+ header = "The IOBus power supply is overloaded"
500
+ >
501
+ The power supply on the IOBus connector is either shorted or overloaded by
502
+ too many devices on the bus.
503
+ </ Alert >
504
+ ) ;
505
+ }
You can’t perform that action at this time.
0 commit comments