Skip to content

Script, catch switch state and show on webui #10359

Answered by gemu2015
rice103 asked this question in Q&A
Discussion options

You must be logged in to vote

it works without problems in my setup

>D
pir=0
>B
->setoption114 1
->switchmode 1

>E
pir=sw[0]
if chg[pir]>0
then
print event %pir%
endif

>S
print %sw[0]%

Replies: 13 comments 19 replies

Comment options

You must be logged in to vote
1 reply
@barbudor
Comment options

Comment options

You must be logged in to vote
1 reply
@rice103
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rice103
Comment options

Comment options

You must be logged in to vote
2 replies
@rice103
Comment options

@barbudor
Comment options

Comment options

You must be logged in to vote
5 replies
@barbudor
Comment options

@gemu2015
Comment options

@gemu2015
Comment options

@gemu2015
Comment options

@gemu2015
Comment options

Comment options

You must be logged in to vote
2 replies
@rice103
Comment options

@rice103
Comment options

Comment options

You must be logged in to vote
5 replies
@rice103
Comment options

@rice103
Comment options

@rice103
Comment options

@rice103
Comment options

@rice103
Comment options

Comment options

You must be logged in to vote
1 reply
@rice103
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rice103
Comment options

Answer selected by ascillato2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants