G’day all
I have recently bought a Goldair Sleepsmart GSPF315 pedestal fan, which uses a Tuya based WiFi controller. So far I have had success controlling the power, speed and oscillation, and on Google Home, it works perfectly. I am having a few problems with a few things. I have based portions of my code on an older Tuya Local switch component by sean6541 (sadly has been removed from Github), and updated
the PyTuya libraries. I am having a few problems:
- I cannot change the fan speed using the Home Assistant control panel. However changing the speed using Google Assistant works perfectly.
- How do I get it to update the state as soon as a command is changed?
- Can I change the speed to a percentage, and will it work for Google Home? The fan is a 12 speed DC-motor
- Can I set up mode selection for the fan (normal, nature and sleep)
- Is there a way I can make the fan show as unavailable if it is not responding?
- I am getting a lot of time out errors when trying to update the state.
Code is here:
Config is
fan:
- platform: tuya
name: "Flat Bedroom Fan"
host: (IP address)
local_key: (tuya local key)
device_id: (tuya device ID)
id: 1
I used tuya-cli to retrieve the device ID and local key.