arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.69k stars 4.72k forks source link

[Matter] The MtrUpdate command with the FanMode parameter is not taken into account #21643

Closed lboue closed 2 weeks ago

lboue commented 2 weeks ago

PROBLEM DESCRIPTION

The MtrUpdate command with the FanMode parameter is not taken into account.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [x] Provide the output of this command: `Status 0`:
```lua
  STATUS 0 output here:
21:15:08.365 MQT: stat/tasmota_120194/STATUS = {"Status":{"Module":1,"DeviceName":"Tasmota Matter Fan","FriendlyName":["Tasmota Matter Fan"],"Topic":"tasmota_120194","ButtonTopic":"0","Power":"1","PowerLock":"0","PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}}
21:15:08.371 MQT: stat/tasmota_120194/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c6.bin","RestartReason":"Software reset CPU","Uptime":"0T07:03:48","StartupUTC":"2024-06-15T13:11:20","Sleep":50,"CfgHolder":4617,"BootCount":7,"BCResetTime":"2024-06-15T14:07:37","SaveCount":25}}
21:15:08.377 MQT: stat/tasmota_120194/STATUS2 = {"StatusFWR":{"Version":"14.1.0.2(94aded8-tasmota32)","BuildDateTime":"2024-06-15T12:03:59","Core":"3_0_1","SDK":"5.1.4.240602","CpuFrequency":160,"Hardware":"ESP32-C6FH4 v0.1","CR":"421/699"}}
21:15:08.381 MQT: stat/tasmota_120194/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["*****",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C80001000600003C5A0A192800000000","00000080","00006002","00004000","00000020"]}}
21:15:08.393 MQT: stat/tasmota_120194/STATUS4 = {"StatusMEM":{"ProgramSize":2033,"Free":846,"Heap":248,"StackLowMark":2,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"164020","FlashFrequency":80,"FlashMode":"QIO","Features":["0809","9F9AD7DF","0015A001","B7F7BFCF","05DA9BC4","E0360DC7","480840D2","20200000","D4BC482D","810A80B1","00000014"],"Drivers":"1,2,!3,4,!5,7,!8,9,10,11,12,!14,!16,!17,!20,!21,!24,26,!27,29,!34,!35,38,50,52,!59,!60,62,!63,!66,!67,!68,!73,82,!86,!87,!88,!121","Sensors":"1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,26,31,34,37,39,40,42,43,45,51,52,55,56,58,59,64,66,67,74,85,92,95,98,103,105,109,127","I2CDriver":"7,8,9,10,11,12,13,14,15,17,18,20,24,29,31,36,41,42,44,46,48,58,62,65,69,76,77,82"}}
21:15:08.403 MQT: stat/tasmota_120194/STATUS5 = {"StatusNET":{"Hostname":"tasmota-120194-7698","IPAddress":"192.168.1.179","Gateway":"192.168.1.254","Subnetmask":"255.255.255.0","DNSServer1":"192.168.1.254","DNSServer2":"9.9.9.9","Mac":"54:32:04:**:**:**","IP6Global":"2a01:e0a:2b3:3990:5632:4ff:fe12:194","IP6Local":"fe80::5632:4ff:fe12:194%st2","Ethernet":{"Hostname":"","IPAddress":"0.0.0.0","Gateway":"0.0.0.0","Subnetmask":"0.0.0.0","DNSServer1":"192.168.1.254","DNSServer2":"9.9.9.9","Mac":"00:00:00:00:00:00","IP6Global":"","IP6Local":""},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":16.0}}
21:15:08.409 MQT: stat/tasmota_120194/STATUS6 = {"StatusMQT":{"MqttHost":"homeassistant.local","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_120194","MqttUser":"*****","MqttCount":2,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
21:15:08.414 MQT: stat/tasmota_120194/STATUS7 = {"StatusTIM":{"UTC":"2024-06-15T20:15:08Z","Local":"2024-06-15T21:15:08","StartDST":"2024-03-31T02:00:00","EndDST":"2024-10-27T03:00:00","Timezone":"+01:00","Sunrise":"04:46","Sunset":"20:55"}}
21:15:08.420 MQT: stat/tasmota_120194/STATUS10 = {"StatusSNS":{"Time":"2024-06-15T21:15:08"}}
21:15:08.427 MQT: stat/tasmota_120194/STATUS11 = {"StatusSTS":{"Time":"2024-06-15T21:15:08","Uptime":"0T07:03:48","UptimeSec":25428,"Heap":242,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Berry":{"HeapUsed":27,"Objects":303},"POWER":"ON","Dimmer":86,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"*****","BSSId":"C0:8A:DE:22:C5:B8","Channel":13,"Mode":"HT20","RSSI":72,"Signal":-64,"LinkCount":2,"Downtime":"0T00:00:10"}}}

### TO REPRODUCE
_Steps to reproduce the behavior:_

1. Enable Matter in Tasmota device
2. Add a virtuel Fan device
3. Pair this Matter Fan device with Apple Home app
4. Send FanMode 1: Low (33%) command in the Tasmota console prompt.

{"MtrUpdate {"ep":2, "FanMode":1}"}



### EXPECTED BEHAVIOUR
Fanspeed value should change.

### SCREENSHOTS
_If applicable, add screenshots to help explain your problem._

### ADDITIONAL CONTEXT
_Add any other context about the problem here._

**(Please, remember to close the issue when the problem has been addressed)**
lboue commented 2 weeks ago

Here is the correct syntax to use:

mtrupdate {"name":"virtual Fan","FanMode":0}
mtrupdate {"name":"virtual Fan","FanMode":1}
mtrupdate {"name":"virtual Fan","FanMode":2}
mtrupdate {"name":"virtual Fan","FanMode":3}