Update power.inc.sh
This commit is contained in:
@@ -1197,6 +1197,7 @@ OFFSITE_SENDPOWER(){
|
||||
}
|
||||
|
||||
GET_TUYA_POWER(){
|
||||
echo "http://${PW_TUYA_API}/status/${PW_SENSOR_DEVICEID[${1}]}"
|
||||
INFO=$(curl -m 3 -s http://${PW_TUYA_API}/status/${PW_SENSOR_DEVICEID[${1}]} | jq '.dps')
|
||||
if [ "${INFO}" != "" ]; then
|
||||
WATT=-1
|
||||
|
||||
Reference in New Issue
Block a user