rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.87k stars 552 forks source link

Gosund SP112 sensors only show up if internet access is not blocked #1152

Open hemy81 opened 1 year ago

hemy81 commented 1 year ago

The problem

SP112 Gosund smart plug works perfectly and shows voltage, power and one switch in local tuya. However if I block the internet connection in the router (pure local operation) only the switch works, while all the sensors (voltage etc.) are frozen. When the internet connection is not blocked I can see all the sensor values. This is reproducable.

Environment

Steps to reproduce

1.

Configuration configuration.yaml or config_flow

DP dump

Provide Home Assistant taceback/logs

Additional information

JackTalisker commented 1 year ago

Seems similar to #1116 which affects me as well

zorrobyte commented 1 year ago

cc @JackTalisker

I read somewhere that if you block Tuya devices, but also don't block access to DNS, it'll stall/zombie out. I have mine blocked and it's working fine, but I also made sure to block DNS as well

Try this, restart and try again

nicknol commented 1 year ago

You might consider setting the scan interval. For this, edit the existing device configuration. See screenshot. I set it to 5 (seconds) for my Gosund device.

2023-01-01_13h09_20