Update power.inc.sh

This commit is contained in:
2024-02-16 23:05:34 -06:00
parent 2f7d7539ca
commit 1ef4eace80

View File

@@ -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