Last active
May 1, 2020 15:42
-
-
Save edgerunner/e34c006671888caa94869ed4474615b7 to your computer and use it in GitHub Desktop.
SmartSwitch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SmartSwitch | |
response timeout -> Network problem | |
update on -> Confirmed on | |
update off -> Confirmed off | |
Unknown | |
Off | |
request on -> On | |
Turning off | |
response off -> Pending off | |
bt response off -> Confirmed off | |
Pending off | |
Confirmed off | |
On | |
request off -> Off | |
Turning on | |
response on -> Pending on | |
bt response on -> Confirmed on | |
Pending on | |
Confirmed on | |
Network problem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
return ( | |
<div style={ {width: "100%", height: "100%", backgroundColor: "#333", padding: "1em"}} > | |
{ model.active_states[0].image_url | |
? <img src= {model.active_states[0].image_url}/> | |
: null | |
} | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment