Skip to content

Commit

Permalink
#8
Browse files Browse the repository at this point in the history
  • Loading branch information
ggeorgovassilis committed Sep 17, 2020
1 parent 9ef8b4c commit 8638d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tp-link-hs100-smartplug/hs100.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ query_plug(){
# plug commands

cmd_print_plug_relay_state(){
output=`send_to_plug $ip $port "$payload_query" | decode | egrep -o 'relay_state":[0,1]' | egrep -o '[0,1]'`
output=`send_to_plug $ip $port "$payload_query" | decode | egrep -oa 'relay_state":[0,1]' | egrep -o '[0,1]'`
if [[ $output -eq 0 ]]; then
echo OFF
elif [[ $output -eq 1 ]]; then
Expand Down

0 comments on commit 8638d5f

Please sign in to comment.