Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inability to turn off fans exposed through matterbridge-hass #29

Open
smhc opened this issue Jan 13, 2025 · 1 comment
Open

Inability to turn off fans exposed through matterbridge-hass #29

smhc opened this issue Jan 13, 2025 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@smhc
Copy link

smhc commented Jan 13, 2025

Describe the bug
Inability to turn off fan configured through Tasmota integration and exposed through matterbridge. Appears to be due to missing "auto" preset? Or maybe simply a missing translation key?

To Reproduce

  1. Configure a Tasmota instance using Sonoff i-fan03 module.
  2. Turn fan on and off successfully via HA
  3. Install matterbridge addon and restart to re-discover and expose fan to matter.
  4. Turn fan on through HA.
  5. Attempt to turn fan off through either matter or HA

Expected behavior
The fan should turn off.
Instead, the fan is turned off then immediately turned back on.

Plugin (please complete the following information):

Matterbridge (please complete the following information):

  • Mode docker container within HA
  • Version 1.7.4
  • OS: Windows, hyper-v, HA

Additional context

Error message in matterbridge:

error [23:08:11.379] [HomeAssistant] Error result received: [object Object]
fatal [23:08:11.379] [Matterbridge] Unhandled Rejection detected at: [object Promise] reason: Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({ code: 'service_validation_error', message: 'Validation error: Preset mode auto is not valid, valid preset modes are: ', translation_key: 'not_valid_preset_mode', translation_placeholders: { preset_mode: 'auto', preset_modes: '' }, translation_domain: 'fan'}) at HomeAssistant.emit (node:events:513:17) at HomeAssistant.emit (file:///usr/local/lib/node_modules/matterbridge-hass/dist/homeAssistant.js:66:22) at ws.onmessage (file:///usr/local/lib/node_modules/matterbridge-hass/dist/homeAssistant.js:140:26) at callListener (/usr/local/lib/node_modules/matterbridge-hass/node_modules/ws/lib/event-target.js:290:14) at WebSocket.onMessage (/usr/local/lib/node_modules/matterbridge-hass/node_modules/ws/lib/event-target.js:209:9) at WebSocket.emit (node:events:536:35) at Receiver.receiverOnMessage (/usr/local/lib/node_modules/matterbridge-hass/node_modules/ws/lib/websocket.js:1220:20) at Receiver.emit (node:events:524:28) at Receiver.dataMessage (/usr/local/lib/node_modules/matterbridge-hass/node_modules/ws/lib/receiver.js:596:14) at /usr/local/lib/node_modules/matterbridge-hass/node_modules/ws/lib/receiver.js:530:12
fatal [23:08:11.379] [Matterbridge] Unhandled Rejection detected at: [object Promise] reason: [object Object]

@smhc
Copy link
Author

smhc commented Jan 14, 2025

FYI the state attributes of the fan in HA are as follows:

preset_modes: null
percentage: 0
percentage_step: 33.333333333333336
preset_mode: null
friendly_name: Lounge Fan
supported_features: 49

@Luligu Luligu self-assigned this Jan 20, 2025
@Luligu Luligu added the question Further information is requested label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants