Update power.inc.sh

This commit is contained in:
2024-02-16 23:11:14 -06:00
parent 81567fa757
commit 1bf2a02af3

View File

@@ -1197,7 +1197,6 @@ 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