Skip to content

Instantly share code, notes, and snippets.

@edgerunner
Last active May 1, 2020 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgerunner/e34c006671888caa94869ed4474615b7 to your computer and use it in GitHub Desktop.
Save edgerunner/e34c006671888caa94869ed4474615b7 to your computer and use it in GitHub Desktop.
SmartSwitch
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
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