Closed irvintim closed 8 months ago
Could you please go to Developer Tools, select tab "States" and find this fan entity there, then please share here it's state and attributes?
fan.living_room_fan Living Room Fan
State: off
Attributes: preset_modes: null percentage: 25 percentage_step: 25 preset_mode: null friendly_name: Living Room Fan supported_features: 1
I'm trying to duplicate this with no success. Are you still having this issue? If so, could you please take a look at Home Assistant logs (Settings > System > Logs) for any message that could be related to this?
I can do that this weekend. This is at a remote location.
On Wed, Jan 31, 2024, 6:47 AM Edward Firmo @.***> wrote:
I'm trying to duplicate this with no success. Are you still having this issue? If so, could you please take a look at Home Assistant logs (Settings > System > Logs) for any message that could be related to this?
— Reply to this email directly, view it on GitHub https://github.com/Blackymas/NSPanel_HA_Blueprint/issues/1706#issuecomment-1919253594, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLU4VR22TVAWJAD36NSHOLYRJKPNAVCNFSM6AAAAABCEQYCQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJZGI2TGNJZGQ . You are receiving this because you authored the thread.Message ID: @.***>
I turned on Local Tuya debug logs and then at the NSPanel tried to adjust the fan speed, these were the logs I was getting. The fan stayed at the lowest setting, even when I clicked 50%, 75% or 100% on teh NSPanel:
2024-02-03 14:16:52.623 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_on
2024-02-03 14:16:52.701 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:16:53.214 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:16:55.126 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_on
2024-02-03 14:16:55.158 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:16:55.670 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:17:07.548 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_on
2024-02-03 14:17:07.648 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:17:08.160 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:17:09.954 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_on
2024-02-03 14:17:09.997 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:17:10.511 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:17:18.348 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_on
2024-02-03 14:17:18.396 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:17:18.908 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:17:19.453 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_on
2024-02-03 14:17:19.528 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:17:20.040 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
I then brought up the Lovelace fan controller in the web interface and did the same adjustments and these logs were created:
2024-02-03 14:18:02.870 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 50
2024-02-03 14:18:03.013 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 50 > 2.0
2024-02-03 14:18:03.015 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:18:03.104 DEBUG (SyncWorker_5) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 2 from (1, 4)
2024-02-03 14:18:03.104 DEBUG (SyncWorker_5) [custom_components.localtuya.fan] Fan current_percentage: 50
2024-02-03 14:18:03.105 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:18:05.787 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 75
2024-02-03 14:18:05.872 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 75 > 3.0
2024-02-03 14:18:05.873 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:18:05.969 DEBUG (SyncWorker_8) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 3 from (1, 4)
2024-02-03 14:18:05.969 DEBUG (SyncWorker_8) [custom_components.localtuya.fan] Fan current_percentage: 75
2024-02-03 14:18:05.970 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:18:07.167 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 100
2024-02-03 14:18:07.209 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 100 > 4.0
2024-02-03 14:18:07.210 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:18:07.299 DEBUG (SyncWorker_3) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 4 from (1, 4)
2024-02-03 14:18:07.299 DEBUG (SyncWorker_3) [custom_components.localtuya.fan] Fan current_percentage: 100
2024-02-03 14:18:07.301 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:18:10.364 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_off
2024-02-03 14:18:10.478 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
2024-02-03 14:18:10.573 DEBUG (SyncWorker_8) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 4 from (1, 4)
2024-02-03 14:18:10.573 DEBUG (SyncWorker_8) [custom_components.localtuya.fan] Fan current_percentage: 100
2024-02-03 14:18:10.575 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 4
These were in /config/home-assistant.log
-- what other logs do you need?
Hi, I'm having the same issue. My fan works perfectly in HA but it does not respond to changes on the NSPanel. The NSPanel updates with changes made in HA. My fan beeps when changes are made but it doesn't beep to changes made on the NSPanel. Mine is also through Local Tuya. It worked correctly on about 4.1 (from memory) but stopped from 4.2.X. If there is any further info I can provide or testing I can assist with please let me know.
Can you see anything related to this on Home Assistant logs (Settings > System > Logs)?
I can't seem to find anything in there. I was also just playing around and found that the on and off buttons work, it is just speed up and down and the slider. Also, I'm using the US version (if that make any difference). Here is a log of the up and down button presses.
I just found this that could be a factor. Appears to be a planned depreciation that the local tuya system is still using.
I don't think this is the cause of the issue, but will investigate it. From your previous logs looks like the panel isn't sending anything to the Blueprint when you press the buttons... That is probably where the issue is.
Is that something that I have done? Is there any other info I can provide to assist?
For further info, here are the NsPanel logs for pressing the fan stop and fan start. When it starts again, I can see it update the screen with speed percentage but it doesn't seem to show any "page" and "key" data like the stop does. Hope this helps.
Which panel model you have? EU, US or US Landscape? Are stop/start buttons in the panel working? I mean, you have issues with the slider only, or also the buttons?
I have the US version in portrait. The physical button is set for toggle and that works. On the screen the start and stop work. The slider and speed up and down buttons don't change anything anymore.
Could you please go to Developer Tools, then select the tab Services and look for service "Fan: Set speed", select your fan as the entity to be controlled and a percentage value, then press Call Service and please let me know if that changes the fan speed?
Yes - that works. Fan speed changes to the set percentage and the fan beeps.
Could you please go back to that page, select that same service again (make sure it is working) then click Go to yaml mode and share here the code?
Confirmed to be working. The yaml code is:
service: fan.set_percentage
target:
entity_id: fan.living_ceiling_fan
data:
percentage: 33
(the indentation isn't showing when I post the comment)
May I ask you for one more thing? On that same Services page, please try now the service "Fan: Turn on". After selecting the entity, a percentage slider should be shown and you should be able to set a different speed.
Guys, thank you so much for looking into this issue! I wish I could help with troubleshooting, but I'm not at the location where I'm having this problem. I won't be there until the weekend of the 22nd. But I'm happy to try anything out when I'm up there again next.
Hey Edward, I have done that. Neither of those set the speed of the fan. The fan stayed at the previous speed setting regardless of whether it was off or on. When the fan was off the turn on did turn the fan on but failed to set the speed set in the service call.
Ok, so it looks like some limitation on Tuya integration side to handle this service call. I will see how I can use the other call then...
By the way, which Home Assistant versions are you using? I wanna know if this issue persists with the new Tuya integration released with HA 2024.2.0 earlier this week.
I am on 2024.1
I am on 2024.2.1 and using LocalTuya 5.2.1
Just doing some more playing around with the fan. I can use the fan.increase_speed from off and it will turn on the fan to 1 speed higher than it was previously running at. From off I can also use fan.set_speed and assign a required speed and this turns on the fan to the requested speed.
I believe I've found a solution for that, which is already in dev
and should be part of the next release.
I will close it for now, to help managing my backlog, but please feel free to comment here or reopen if the fix didn't worked.
We just released a patch with solves this: v4.2.5 - Celebrating 1000 Stars with Enhanced Functionality and UI Improvements Could you please update your system and let me know if the issue was solved?
Hey Edward, I've just loaded and tested 4.2.5 and it's all working correctly for speed control. Thanks!!!
Fantastic news! Thank you so much Edward. I will test it out when I'm up there on the 22nd. Thanks to both of you for getting to the bottom to this and getting it fixed so quickly.
I updated it to 4.2.6 and can confirm that the LocalTuya fan control works. Thank you for getting this workaround in so quickly.
TFT Version
4.2.4
ESPHome Version
4.2.4
Blueprint Version
4.2.4
Panel Model
NSPanel US Model
What is the bug?
When I try to adjust the fan speed for a LocalTuya-mangaged fan, the fan speed doesn't change. On/off does work.
Steps to Reproduce
Custom button 01 - ENTITY (Optional)
tofan.living_room_fan
Some other details: if I go to that fan's device page in Home Assistant, I CAN adjust the fan speed with the slider. But when I change the speed setting on the NSPanel, I don't see any updates on this Home Assitant device page.
I have another fan controlled by a different NSPanael, that fax is controlled through Bond, and it's speed settings work fin on the NSPanel.
One thing I notice in the HA logs, when I change the speed settings on each fan, the one that doesn't work logs this:
Living Room NSPanel Configuration triggered by event 'esphome.nspanel_ha_blueprint'
while the one that does work logs both of these lines:Bedroom NSPanel Configuration triggered by automation Bedroom NSPanel Configuration triggered by event 'esphome.nspanel_ha_blueprint'
Bedroom NSPanel Configuration triggered by event 'esphome.nspanel_ha_blueprint'
Your panel's YAML
ESPHome logs
Home Assistant logs