-
Notifications
You must be signed in to change notification settings - Fork 1
SampleRulesESPEasy
FanOfHue edited this page Jan 14, 2019
·
4 revisions
Sample rules to display a small webgui with one parameter and two switch buttons
on System#Boot do
webRootRedirect
Config,group,LivingRoom
event Web#Print
endon
on Pin12_On do
gpio,12,1
endon
on Pin12_Off do
gpio,12,0
endon
on Web#Print do
webPrint
webPrint <H1>Temperature: [MSGBUS#Temperature]</h1>
webPrint <H1>Power: [plugin#gpio#pinstate#12]</H1>
webButton button-link;?cmd=event,Pin12_On;On
webButton button-link;?cmd=event,Pin12_Off;Off
endon