<% if(typeof options !== "undefined" && typeof options.fanControl !== "undefined" && options.fanControl == true) { %>
<% } %>
<%= name %>
Light
On
Off
<% if(typeof options !== "undefined" && typeof options.fanControl !== "undefined" && options.fanControl == true) { %>
Fan Speed:
Off
1
2
3
<% } %>