connected the api to the button to update the controller state

This commit is contained in:
csawatzky 2026-03-09 11:41:17 -06:00
parent a9f5b9594b
commit b992b6785c
2 changed files with 44 additions and 21 deletions

View file

@ -1556,7 +1556,7 @@ export default function BinVisualizer(props: Props) {
let device = componentDevices.get(fan.key)
if(fanComp && device){
return (
<BinControllerDisplay component={fanComp} deviceID={device}/>
<BinControllerDisplay component={fanComp} deviceID={device} currentState/>
)
}
})}
@ -1565,7 +1565,7 @@ export default function BinVisualizer(props: Props) {
let device = componentDevices.get(heater.key)
if(heaterComp && device){
return (
<BinControllerDisplay component={heaterComp} deviceID={device}/>
<BinControllerDisplay component={heaterComp} deviceID={device} currentState={heater.state}/>
)
}
})}