Update power.inc.sh

This commit is contained in:
2024-05-02 21:54:35 -05:00
parent f9f0a4cad6
commit 4a5567bee2

View File

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