-
PROBLEM DESCRIPTIONI attach INA226 to I2c bus and tasmota detect module as INA219. I self-compiled a firmware with I2cDriver35, disabled from console I2cDriver14 for INA219, activated driver for INA226 with I2cDriver35 1. I try on both esp8266 and esp32. REQUESTED INFORMATIONMake sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Configuration output here:
CMD: Backlog Template
RSL: RESULT = {"NAME":"ESP32-DevKit","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,0,0,0,0,1,1,1,1,1,0,0,1],"FLAG":0,"BASE":1}
CMD: Module
RSL: RESULT = {"Module":{"1":"ESP32-DevKit"}}
CMD: GPIO 255`
RSL: RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"608":"I2C SCL1"},"GPIO3":{"0":"None"},"GPIO4":{"640":"I2C SDA1"},"GPIO5":{"0":"None"},"GPIO6":{"0":"None"},"GPIO7":{"0":"None"},"GPIO8":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO11":{"0":"None"},"GPIO12":{"0":"None"},"GPIO13":{"0":"None"},"GPIO14":{"0":"None"},"GPIO15":{"0":"None"},"GPIO16":{"0":"None"},"GPIO17":{"0":"None"},"GPIO18":{"0":"None"},"GPIO19":{"0":"None"},"GPIO20":{"0":"None"},"GPIO21":{"0":"None"},"GPIO22":{"0":"None"},"GPIO23":{"0":"None"},"GPIO24":{"0":"None"},"GPIO25":{"0":"None"},"GPIO26":{"0":"None"},"GPIO27":{"0":"None"},"GPIO32":{"0":"None"},"GPIO33":{"0":"None"},"GPIO34":{"0":"None"},"GPIO35":{"0":"None"},"GPIO36":{"0":"None"},"GPIO37":{"0":"None"},"GPIO38":{"0":"None"},"GPIO39":{"0":"None"}}
Rules output here:
STATUS 0 output here:
22:48:27.868 CMD: Status 0
22:48:27.872 RSL: STATUS = {"Status":{"Module":1,"DeviceName":"Tasmota","FriendlyName":["Tasmota"],"Topic":"tasmota_804EB0","ButtonTopic":"0","Power":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}}
22:48:27.882 RSL: STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32.bin","RestartReason":"Software reset CPU","Uptime":"0T00:19:26","StartupUTC":"2023-02-23T21:29:01","Sleep":50,"CfgHolder":4617,"BootCount":14,"BCResetTime":"2023-02-23T22:16:14","SaveCount":35}}
22:48:27.891 RSL: STATUS2 = {"StatusFWR":{"Version":"12.4.0.1(tasmota32)","BuildDateTime":"2023-02-23T22:19:11","Core":"2_0_7","SDK":"4.4.4.20230218","CpuFrequency":160,"Hardware":"ESP32-D0WDQ6 rev.1","CR":"403/699"}}
22:48:27.895 RSL: STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Vasile-NoT",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C80001000600003C5A0A192800000000","00000080","00006000","00004000","00000000"]}}
22:48:27.910 RSL: STATUS4 = {"StatusMEM":{"ProgramSize":1487,"Free":560,"Heap":153,"StackLowMark":3,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"164020","FlashFrequency":80,"FlashMode":"DIO","Features":["00000809","9F9AD7CF","0015A001","B7F7BFCF","05DA9BC0","E0360DD7","480840D2","20200000","D43C482D","000080B1"],"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,82,86,87,88","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,54,55,56,58,59,64,66,67,74,85,92,95,98,103,127"}}
22:48:27.925 RSL: STATUS5 = {"StatusNET":{"Hostname":"tasmota-804EB0-3760","IPAddress":"10.10.10.37","Gateway":"10.10.10.1","Subnetmask":"255.255.255.0","DNSServer1":"10.10.10.1","DNSServer2":"0.0.0.0","Mac":"78:21:84:80:4E:B0","IP6Global":"","IP6Local":"fe80::7a21:84ff:fe80:4eb0","Ethernet":{"Hostname":"","IPAddress":"0.0.0.0","Gateway":"0.0.0.0","Subnetmask":"0.0.0.0","DNSServer1":"10.10.10.1","DNSServer2":"0.0.0.0","Mac":"00:00:00:00:00:00","IP6Global":"","IP6Local":""},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
22:48:27.933 RSL: STATUS6 = {"StatusMQT":{"MqttHost":"","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_804EB0","MqttUser":"DVES_USER","MqttCount":0,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
22:48:27.938 RSL: STATUS7 = {"StatusTIM":{"UTC":"2023-02-23T21:48:27","Local":"2023-02-23T22:48:27","StartDST":"2023-03-26T02:00:00","EndDST":"2023-10-29T03:00:00","Timezone":"+01:00","Sunrise":"07:44","Sunset":"18:22"}}
22:48:27.947 RSL: STATUS10 = {"StatusSNS":{"Time":"2023-02-23T22:48:27"}}
22:48:27.954 RSL: STATUS11 = {"StatusSTS":{"Time":"2023-02-23T22:48:27","Uptime":"0T00:19:26","UptimeSec":1166,"Heap":156,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"Berry":{"HeapUsed":3,"Objects":43},"Wifi":{"AP":1,"SSId":"Vasile-NoT","BSSId":"7A:45:58:AF:F9:DD","Channel":6,"Mode":"11n","RSSI":100,"Signal":-49,"LinkCount":1,"Downtime":"0T00:00:02"}}}
Console output here:
TO REPRODUCEPlug INA226 device on I2c bus and see results EXPECTED BEHAVIOURTo show correct device in main window, and in MQTT . SCREENSHOTSPS Picture attached are from ESP8266 but issue is the same in ESP32 ADDITIONAL CONTEXTAdd any other context about the problem here. (Please, remember to close the issue when the problem has been addressed) |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 25 replies
-
Your build includes multiple drivers that use the same address as INA219 (i2cdriver14) and INA226 (i2cdriver35) such as HTU (i2cdriver9)
|
Beta Was this translation helpful? Give feedback.
-
I`ve compiled a version for ESP8266 with i2cdriver35 only. 09:23:10.324 CMD: i2cdriver
09:23:10.330 MQT: stat/tasmota_24F95C/RESULT = {"I2CDriver":"35"} 09:26:33.277 CMD: i2cscan
09:26:33.299 MQT: stat/tasmota_24F95C/RESULT = {"I2CScan":"Device(s) found at 0x40"} |
Beta Was this translation helpful? Give feedback.
-
Please post your |
Beta Was this translation helpful? Give feedback.
-
@Jason2866 |
Beta Was this translation helpful? Give feedback.
-
Since you have only |
Beta Was this translation helpful? Give feedback.
-
Sorry, without providing relevant Infos we asked for, to help you with YOUR problem nobody can help. |
Beta Was this translation helpful? Give feedback.
-
Jason2866 |
Beta Was this translation helpful? Give feedback.
-
Still we don't know all the changes you did, posting a screenshots does not help. |
Beta Was this translation helpful? Give feedback.
-
Have you read about Sensor54 command ? INA226 will not appear in the WebGUI until it first has been confirgured properly with Sensor54 command |
Beta Was this translation helpful? Give feedback.
-
exactly what i need, would it be possible for you to send me the bin? I have no idea how to self-compile it. |
Beta Was this translation helpful? Give feedback.
-
now it works but unfortunately the voltage is displayed without decimal places. Where can you adjust this? |
Beta Was this translation helpful? Give feedback.
-
I have the same INA226 with R002 shunt, How to fix it? |
Beta Was this translation helpful? Give feedback.
Have you read about Sensor54 command ?
INA226 will not appear in the WebGUI until it first has been confirgured properly with Sensor54 command