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

Inconsistent iFan03 RESULT for cmnd/tasmotas/SetOption19 #10683

Closed
13 of 14 tasks
bilogic opened this issue Jan 25, 2021 · 6 comments
Closed
13 of 14 tasks

Inconsistent iFan03 RESULT for cmnd/tasmotas/SetOption19 #10683

bilogic opened this issue Jan 25, 2021 · 6 comments
Labels
question Type - Asking for Information

Comments

@bilogic
Copy link

bilogic commented Jan 25, 2021

PROBLEM DESCRIPTION

  1. When I send cmnd/tasmotas/SetOption19, value 0, my Sonoff iFan03 (71), returns a response that alternates between A and B below.
  2. I gone through all my settings and could not anything that might be causing this behavior.
  3. When it responds with B, Home Assistant shows Entity not available for the light (POWER1) until I fire another cmnd/tasmotas/SetOption19, 0
  4. I'm sniffing the responses using MQTT Explorer

Response A,

{
    "Time": "2021-01-25T18:55:19",
    "Uptime": "1T04:58:34",
    "UptimeSec": 104314,
    "Heap": 26,
    "SleepMode": "Dynamic",
    "Sleep": 50,
    "LoadAvg": 19,
    "MqttCount": 5,
    "POWER1": "OFF",
    "FanSpeed": 2,
    "Wifi": {
        "AP": 1,
        "SSId": "*******",
        "BSSId": "**:**:**:**:**:**",
        "Channel": 1,
        "RSSI": 94,
        "Signal": -53,
        "LinkCount": 3,
        "Downtime": "0T00:01:41"
    }
}

Response B

{
    "FanSpeed":2
}

REQUESTED INFORMATION

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

  • Read the Contributing Guide and Policy and the Code of Conduct
  • Searched the problem in issues
  • Searched the problem in discussions
  • Searched the problem in the docs
  • Searched the problem in the chat
  • Device used (e.g., Sonoff Basic): Sonoff iFan03
  • Tasmota binary firmware version number used: 9.2.0
    • Pre-compiled
    • Self-compiled
  • Flashing tools used: Tasmotizer
  • Provide the output of command: Backlog Template; Module; GPIO 255:
  Configuration output here:
19:07:45 MQT: stat/tasmota_8FA7C0/RESULT = {"NAME":"Generic","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":18}
19:07:45 MQT: stat/tasmota_8FA7C0/RESULT = {"Module":{"71":"Sonoff iFan03"}}
19:07:46 MQT: stat/tasmota_8FA7C0/RESULT = {"GPIO0":{"32":"Button1"},"GPIO1":{"3200":"Serial Tx"},"GPIO2":{"0":"None"},"GPIO3":{"3232":"Serial Rx"},"GPIO4":{"0":"None"},"GPIO5":{"0":"None"},"GPIO9":{"256":"Relay_i1"},"GPIO10":{"512":"Buzzer_i"},"GPIO12":{"226":"Relay3"},"GPIO13":{"320":"Led_i1"},"GPIO14":{"225":"Relay2"},"GPIO15":{"227":"Relay4"},"GPIO16":{"0":"None"},"GPIO17":{"0":"None"}}}
  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
  Rules output here:
19:08:26 MQT: stat/tasmota_8FA7C0/RESULT = {"Rule1":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}
19:08:26 MQT: stat/tasmota_8FA7C0/RESULT = {"Rule2":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}
19:08:27 MQT: stat/tasmota_8FA7C0/RESULT = {"Rule3":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}
  • Provide the output of this command: Status 0:
  STATUS 0 output here:
19:09:01 MQT: stat/tasmota_8FA7C0/STATUS = {"Status":{"Module":71,"DeviceName":"ifan03","FriendlyName":["Ceiling Light"],"Topic":"tasmota_8FA7C0","ButtonTopic":"0","Power":2,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
19:09:02 MQT: stat/tasmota_8FA7C0/STATUS1 = {"StatusPRM":{"Baudrate":9600,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software/System restart","Uptime":"1T05:12:16","StartupUTC":"2021-01-24T05:56:45","Sleep":50,"CfgHolder":4617,"BootCount":54,"BCResetTime":"2020-12-18T05:09:31","SaveCount":2674,"SaveAddress":"FA000"}}
19:09:02 MQT: stat/tasmota_8FA7C0/STATUS2 = {"StatusFWR":{"Version":"9.2.0(tasmota)","BuildDateTime":"2020-12-17T10:05:31","Boot":31,"Core":"2_7_4_9","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8285","CR":"398/699"}}
19:09:02 MQT: stat/tasmota_8FA7C0/STATUS3 = {"StatusLOG":{"SerialLog":0,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["rtfckut",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00028009","2805C8000100060000005A00000000000000","00000200","00006000","00000000"]}}
19:09:02 MQT: stat/tasmota_8FA7C0/STATUS4 = {"StatusMEM":{"ProgramSize":586,"Free":416,"Heap":23,"ProgramFlashSize":1024,"FlashSize":1024,"FlashChipId":"144051","FlashFrequency":40,"FlashMode":3,"Features":["00000809","8FDAC787","04368001","000000CF","010013C0","C000F981","00004004","00001000"],"Drivers":"1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37,45","Sensors":"1,2,3,4,5,6"}}
19:09:02 MQT: stat/tasmota_8FA7C0/STATUS5 = {"StatusNET":{"Hostname":"tasmota_8FA7C0-1984","IPAddress":"192.168.9.168","Gateway":"192.168.9.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.9.1","Mac":"D8:F1:5B:8F:A7:C0","Webserver":2,"WifiConfig":4,"WifiPower":17.0}}
19:09:02 MQT: stat/tasmota_8FA7C0/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.214.10","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_8FA7C0","MqttUser":"DVES_USER","MqttCount":5,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30}}
19:09:02 MQT: stat/tasmota_8FA7C0/STATUS7 = {"StatusTIM":{"UTC":"2021-01-25T11:09:02","Local":"2021-01-25T19:09:02","StartDST":"2021-03-28T02:00:00","EndDST":"2021-10-31T03:00:00","Timezone":"+08:00","Sunrise":"15:28","Sunset":"00:36"}}
19:09:02 MQT: stat/tasmota_8FA7C0/STATUS10 = {"StatusSNS":{"Time":"2021-01-25T19:09:02"}}
19:09:02 MQT: stat/tasmota_8FA7C0/STATUS11 = {"StatusSTS":{"Time":"2021-01-25T19:09:02","Uptime":"1T05:12:17","UptimeSec":105137,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":5,"POWER1":"OFF","FanSpeed":1,"Wifi":{"AP":1,"SSId":"rtfckut","BSSId":"78:24:AF:E4:F8:F0","Channel":1,"RSSI":92,"Signal":-54,"LinkCount":3,"Downtime":"0T00:01:41"}}}
  • Set weblog to 4 and then, when you experience your issue, provide the output of the Console log:
  Console output here:
19:09:37 MQT: stat/tasmota_8FA7C0/RESULT = {"WebLog":4}
19:09:38 CFG: Saved to flash at F9, Count 2675, Bytes 4096
19:09:46 MQT: Data Size 1, "cmnd/tasmotas/SetOption19 0"
19:09:46 SRC: MQTT
19:09:46 CMD: Group 1, Index 19, Command "SETOPTION", Data "0"
19:09:46 MQT: stat/tasmota_8FA7C0/RESULT = {"SetOption19":"OFF"}
19:09:46 MQT: Data Size 1, "cmnd/tasmota_8FA7C0/FanSpeed 2"
19:09:46 SRC: MQTT
19:09:46 CMD: Group 0, Index 1, Command "FANSPEED", Data "2"
19:09:47 MQT: stat/tasmota_8FA7C0/RESULT = {"FanSpeed":2}
19:09:47 MQT: homeassistant/binary_sensor/8FA7C0_SW_2/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_3_TOGGLE/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_3_HOLD/config =  (retained)
19:09:47 MQT: homeassistant/binary_sensor/8FA7C0_SW_3/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_4_TOGGLE/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_4_HOLD/config =  (retained)
19:09:47 MQT: homeassistant/binary_sensor/8FA7C0_SW_4/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_5_TOGGLE/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_5_HOLD/config =  (retained)
19:09:47 MQT: homeassistant/binary_sensor/8FA7C0_SW_5/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_6_TOGGLE/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_6_HOLD/config =  (retained)
19:09:47 MQT: homeassistant/binary_sensor/8FA7C0_SW_6/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_7_TOGGLE/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_7_HOLD/config =  (retained)
19:09:47 MQT: homeassistant/binary_sensor/8FA7C0_SW_7/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_8_TOGGLE/config =  (retained)
19:09:47 MQT: homeassistant/device_automation/8FA7C0_SW_8_HOLD/config =  (retained)
19:09:47 MQT: homeassistant/binary_sensor/8FA7C0_SW_8/config =  (retained)
19:09:47 MQT: homeassistant/cover/8FA7C0_SHT_1/config =  (retained)
19:09:47 MQT: homeassistant/cover/8FA7C0_SHT_2/config =  (retained)
19:09:47 MQT: homeassistant/cover/8FA7C0_SHT_3/config =  (retained)
19:09:47 MQT: homeassistant/cover/8FA7C0_SHT_4/config =  (retained)
19:09:47 MQT: homeassistant/light/8FA7C0_LI_1/config =  (retained)
19:09:47 MQT: homeassistant/switch/8FA7C0_RL_1/config =  (retained)
19:09:47 MQT: homeassistant/light/8FA7C0_LI_2/config =  (retained)
19:09:47 MQT: homeassistant/switch/8FA7C0_RL_2/config =  (retained)
19:09:47 MQT: homeassistant/light/8FA7C0_LI_3/config =  (retained)
19:09:47 MQT: homeassistant/switch/8FA7C0_RL_3/config =  (retained)
19:09:47 MQT: homeassistant/light/8FA7C0_LI_4/config =  (retained)
19:09:47 MQT: homeassistant/switch/8FA7C0_RL_4/config =  (retained)
19:09:47 MQT: homeassistant/light/8FA7C0_LI_5/config =  (retained)
19:09:47 MQT: homeassistant/switch/8FA7C0_RL_5/config =  (retained)
19:09:47 MQT: homeassistant/light/8FA7C0_LI_6/config =  (retained)
19:09:47 MQT: homeassistant/switch/8FA7C0_RL_6/config =  (retained)
19:09:47 MQT: homeassistant/light/8FA7C0_LI_7/config =  (retained)
19:09:47 MQT: homeassistant/switch/8FA7C0_RL_7/config =  (retained)
19:09:47 MQT: homeassistant/light/8FA7C0_LI_8/config =  (retained)
19:09:47 MQT: homeassistant/switch/8FA7C0_RL_8/config =  (retained)
19:09:47 MQT: homeassistant/sensor/8FA7C0_status/config =  (retained)
19:09:47 LOG: Home Assistant MQTT Discovery disabled.
19:09:47 MQT: tasmota/discovery/D8F15B8FA7C0/config = {"ip":"192.168.9.168","dn":"ifan03","fn":["Ceiling Light","Tasmota2","Tasmota3","Tasmota4",null,null,null,null],"hn":"tasmota_8FA7C0-1984","mac":"D8F15B8FA7C0","md":"Sonoff iFan03","ty":0,"if":1,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"9.2.0","t":"tasmota_8FA7C0","ft":"%prefix%/%topic%/","tp":["cmnd","stat","tele"],"rl":[2,0,0,0,0,0,0,0],"swc":[-1,-1,-1,-1,-1,-1,-1,-1],"swn":[null,null,null,null,null,null,null,null],"btn":[0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":1,"20":0,"30":0,"68":0,"73":0,"82":0,"114":0},"lk":1,"lt_st":0,"sho":[0,0,0,0],"ver":1} (retained)
19:09:47 MQT: tasmota/discovery/D8F15B8FA7C0/sensors = {"sn":{"Time":"2021-01-25T19:09:47"},"ver":1} (retained)
19:09:47 CFG: Saved to flash at F8, Count 2676, Bytes 4096
19:09:48 WIF: Checking connection...
19:10:08 WIF: Checking connection...
19:10:28 WIF: Checking connection...
19:10:29 MQT: Data Size 1, "cmnd/tasmotas/SetOption19 0"
19:10:29 SRC: MQTT
19:10:29 CMD: Group 1, Index 19, Command "SETOPTION", Data "0"
19:10:29 MQT: stat/tasmota_8FA7C0/RESULT = {"SetOption19":"OFF"}
19:10:29 MQT: Data Size 1, "cmnd/tasmota_8FA7C0/FanSpeed 2"
19:10:29 SRC: MQTT
19:10:29 CMD: Group 0, Index 1, Command "FANSPEED", Data "2"
19:10:29 MQT: stat/tasmota_8FA7C0/RESULT = {"FanSpeed":2}
19:10:29 MQT: homeassistant/binary_sensor/8FA7C0_SW_5/config =  (retained)
19:10:29 MQT: homeassistant/device_automation/8FA7C0_SW_6_TOGGLE/config =  (retained)
19:10:29 MQT: homeassistant/device_automation/8FA7C0_SW_6_HOLD/config =  (retained)
19:10:29 MQT: homeassistant/binary_sensor/8FA7C0_SW_6/config =  (retained)
19:10:29 MQT: homeassistant/device_automation/8FA7C0_SW_7_TOGGLE/config =  (retained)
19:10:29 MQT: homeassistant/device_automation/8FA7C0_SW_7_HOLD/config =  (retained)
19:10:29 MQT: homeassistant/binary_sensor/8FA7C0_SW_7/config =  (retained)
19:10:29 MQT: homeassistant/device_automation/8FA7C0_SW_8_TOGGLE/config =  (retained)
19:10:29 MQT: homeassistant/device_automation/8FA7C0_SW_8_HOLD/config =  (retained)
19:10:29 MQT: homeassistant/binary_sensor/8FA7C0_SW_8/config =  (retained)
19:10:29 MQT: homeassistant/cover/8FA7C0_SHT_1/config =  (retained)
19:10:29 MQT: homeassistant/cover/8FA7C0_SHT_2/config =  (retained)
19:10:29 MQT: homeassistant/cover/8FA7C0_SHT_3/config =  (retained)
19:10:29 MQT: homeassistant/cover/8FA7C0_SHT_4/config =  (retained)
19:10:29 MQT: homeassistant/light/8FA7C0_LI_1/config =  (retained)
19:10:29 MQT: homeassistant/switch/8FA7C0_RL_1/config =  (retained)
19:10:29 MQT: homeassistant/light/8FA7C0_LI_2/config =  (retained)
19:10:29 MQT: homeassistant/switch/8FA7C0_RL_2/config =  (retained)
19:10:29 MQT: homeassistant/light/8FA7C0_LI_3/config =  (retained)
19:10:29 MQT: homeassistant/switch/8FA7C0_RL_3/config =  (retained)
19:10:29 MQT: homeassistant/light/8FA7C0_LI_4/config =  (retained)
19:10:29 MQT: homeassistant/switch/8FA7C0_RL_4/config =  (retained)
19:10:29 MQT: homeassistant/light/8FA7C0_LI_5/config =  (retained)
19:10:29 MQT: homeassistant/switch/8FA7C0_RL_5/config =  (retained)
19:10:29 MQT: homeassistant/light/8FA7C0_LI_6/config =  (retained)
19:10:29 MQT: homeassistant/switch/8FA7C0_RL_6/config =  (retained)
19:10:29 MQT: homeassistant/light/8FA7C0_LI_7/config =  (retained)
19:10:29 MQT: homeassistant/switch/8FA7C0_RL_7/config =  (retained)
19:10:29 MQT: homeassistant/light/8FA7C0_LI_8/config =  (retained)
19:10:29 MQT: homeassistant/switch/8FA7C0_RL_8/config =  (retained)
19:10:29 MQT: homeassistant/sensor/8FA7C0_status/config =  (retained)
19:10:29 LOG: Home Assistant MQTT Discovery disabled.
19:10:29 MQT: tasmota/discovery/D8F15B8FA7C0/config = {"ip":"192.168.9.168","dn":"ifan03","fn":["Ceiling Light","Tasmota2","Tasmota3","Tasmota4",null,null,null,null],"hn":"tasmota_8FA7C0-1984","mac":"D8F15B8FA7C0","md":"Sonoff iFan03","ty":0,"if":1,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"9.2.0","t":"tasmota_8FA7C0","ft":"%prefix%/%topic%/","tp":["cmnd","stat","tele"],"rl":[2,0,0,0,0,0,0,0],"swc":[-1,-1,-1,-1,-1,-1,-1,-1],"swn":[null,null,null,null,null,null,null,null],"btn":[0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":1,"20":0,"30":0,"68":0,"73":0,"82":0,"114":0},"lk":1,"lt_st":0,"sho":[0,0,0,0],"ver":1} (retained)
19:10:29 MQT: tasmota/discovery/D8F15B8FA7C0/sensors = {"sn":{"Time":"2021-01-25T19:10:29"},"ver":1} (retained)
19:10:31 MQT: Data Size 0, "cmnd/tasmota_8FA7C0/STATE "
19:10:31 SRC: MQTT
19:10:31 CMD: Group 0, Index 1, Command "STATE", Data ""
19:10:31 MQT: tele/tasmota_8FA7C0/STATE = {"Time":"2021-01-25T19:10:31","Uptime":"1T05:13:46","UptimeSec":105226,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":22,"MqttCount":5,"POWER1":"OFF","FanSpeed":2,"Wifi":{"AP":1,"SSId":"rtfckut","BSSId":"78:24:AF:E4:F8:F0","Channel":1,"RSSI":90,"Signal":-55,"LinkCount":3,"Downtime":"0T00:01:41"}}
19:10:31 MQT: stat/tasmota_8FA7C0/RESULT = {"Time":"2021-01-25T19:10:31","Uptime":"1T05:13:46","UptimeSec":105226,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":22,"MqttCount":5,"POWER1":"OFF","FanSpeed":2,"Wifi":{"AP":1,"SSId":"rtfckut","BSSId":"78:24:AF:E4:F8:F0","Channel":1,"RSSI":90,"Signal":-55,"LinkCount":3,"Downtime":"0T00:01:41"}}
19:10:48 WIF: Checking connection...

TO REPRODUCE

Steps to reproduce the behavior:

EXPECTED BEHAVIOUR

I'm expecting the JSON to consistently be Response A so that the light is always controllable from Home Assistant

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)

@sfromis
Copy link
Contributor

sfromis commented Jan 25, 2021

Nothing inconsistent there, "response A" is just the regular /STATE message (not /RESULT) published at TelePeriod intervals. Use it if you like, or just ignore it.

@ascillato2
Copy link
Collaborator

Closing this issue as it has been answered.


Support Information

See Docs for more information.
See Chat for more user experience.
See Code of Conduct

@ascillato2 ascillato2 added the question Type - Asking for Information label Jan 25, 2021
@bilogic
Copy link
Author

bilogic commented Jan 25, 2021

@sfromis sorry, I don't quite follow. I have other tasmota devices, they don't become Entity not available in HA after I fire cmnd/tasmotas/SetOption19 = 0 only once. Is there a way to make iFan03 behave the same? Thank you.

@sfromis
Copy link
Contributor

sfromis commented Jan 25, 2021

Well I answered to your point about "inconsistent", which it is not. No issue needing fixing. For help understanding how it works with HA (which I'm not using), better ask in the "Chat" link posted above by ascillato2.

@bilogic
Copy link
Author

bilogic commented Jan 25, 2021

Hmm, but I do have a /RESULT with response A. See the last 2nd line of from the weblog = 4 output.

19:10:31 MQT: stat/tasmota_8FA7C0/RESULT = {"Time":"2021-01-25T19:10:31","Uptime":"1T05:13:46","UptimeSec":105226,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":22,"MqttCount":5,"POWER1":"OFF","FanSpeed":2,"Wifi":{"AP":1,"SSId":"rtfckut","BSSId":"78:24:AF:E4:F8:F0","Channel":1,"RSSI":90,"Signal":-55,"LinkCount":3,"Downtime":"0T00:01:41"}}

@ascillato2
Copy link
Collaborator

Please, address this to the Tasmota Support Chat. The chat is a better and more dynamic channel for helping you. Github issues are meant for Tasmota Software Bug Reporting.

Remember to read the Contributing Guideline and Policy. Thanks.


Support Information

See Docs for more information.
See Chat for more user experience.
See Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Type - Asking for Information
Projects
None yet
Development

No branches or pull requests

3 participants