Update power.inc.sh

This commit is contained in:
2024-10-22 22:23:25 -05:00
parent 9b2a897499
commit 1a74c1392b

View File

@@ -1356,7 +1356,7 @@ OFFSITE_SENDPOWER(){
}
GET_TUYA_POWER(){
echo "HERE: $1"
echo "HERE: $1 - http://${PW_REMOTE_SENSORS[${1}]}:8888/status/${PW_SENSOR_DEVICEID[${1}]}"
INFO=$(curl -m 3 -s http://${PW_REMOTE_SENSORS[${1}]}:8888/status/${PW_SENSOR_DEVICEID[${1}]} | jq '.dps')
if [ "${INFO}" != "" ]; then
WATT=-1