Update power.inc.sh

This commit is contained in:
2024-05-02 21:57:00 -05:00
parent 9be1070262
commit 06d57e42ac

View File

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