8000 Tasmota: enable more usages for SML by thierolm · Pull Request #19072 · evcc-io/evcc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tasmota: enable more usages for SML #19072

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

Merged

Conversation

thierolm
Copy link
Contributor
@thierolm thierolm commented Feb 22, 2025
  • Tasmota SML reader can be used now with the Tasmota standard template for more usage scenarios: pv, battery, charge
    Refer to Tasmota SML IR Head outputs 0 #19041
  • PV usage logic for CurrentPower was integrated in /meter/shelly.go
  • Tasmota templates were updated correspondigly

@andig andig added the devices Specific device support label Feb 22, 2025
@premultiply premultiply marked this pull request as draft February 23, 2025 12:29
@thierolm thierolm mentioned this pull request Feb 23, 2025
2 tasks
@thierolm thierolm marked this pull request as ready for review February 24, 2025 09:09
@github-actions github-actions bot added the stale Outdated and ready to close label Mar 4, 2025
@github-actions github-actions bot closed this Mar 9, 2025
@andig andig reopened this Mar 31, 2025
@andig
Copy link
Member
andig commented Mar 31, 2025

Done

@github-actions github-actions bot removed the stale Outdated and ready to close label Mar 31, 2025
@thierolm
Copy link
Contributor Author
thierolm commented Apr 1, 2025

@jeriox bitte teste jetzt nochmal den PR

@premultiply premultiply requested a review from Copilot April 6, 2025 19:49
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jeriox
Copy link
jeriox commented Apr 8, 2025

@jeriox bitte teste jetzt nochmal den PR

funktioniert einwandfrei!

@andig
Copy link
Member
andig commented Apr 8, 2025

@thierolm könnten wir es hier analog Shelly machen und die usage Logik aus der Connection raus halten?

@thierolm
Copy link
Contributor Author
thierolm commented Apr 8, 2025

Ja, mache ich ...

@premultiply premultiply marked this pull request as draft April 8, 2025 20:03
@github-actions github-actions bot added the stale Outdated and ready to close label Apr 15, 2025
@github-actions github-actions bot removed the stale Outdated and ready to close label Apr 18, 2025
@thierolm thierolm marked this pull request as ready for review April 18, 2025 15:40
@thierolm
Copy link
Contributor Author

@jeriox kannst du den PR testen?
Konnte nur meinen Sonoff Pow R2 mit Tasmota 14.6.0 erfolgreich testen.

Meter Log:

thierolm@LAPTOP-KQMMVN3H:~/git-repos/evcc$ ./evcc -c evcc_tasmota_test.yaml -l trace meter
[main  ] INFO 2025/04/18 18:06:46 evcc 0.203.1 (21b76d562)
[main  ] INFO 2025/04/18 18:06:46 using config file: evcc_tasmota_test.yaml
...
[tasmota] TRACE 2025/04/18 18:27:26 GET http://192.168.X.X/cm?cmnd=Status+8&password=&user=
[tasmota] TRACE 2025/04/18 18:27:26 {"StatusSNS":{"Time":"2025-04-18T17:27:27","ENERGY":{"TotalStartTime":"2021-03-30T16:22:05","Total":432.730,"Yesterday":0.000,"Today":0.001,"Power":10,"ApparentPower":18,"ReactivePower":15,"Factor":0.56,"Voltage":234,"Current":0.075}}}
Power:  10W
Energy: 432.7kWh

Charger Log:

thierolm@LAPTOP-KQMMVN3H:~/git-repos/evcc$ ./evcc -c evcc_tasmota_test.yaml -l trace charger
[main  ] INFO 2025/04/18 18:28:05 evcc 0.203.1 (21b76d562)
[main  ] INFO 2025/04/18 18:28:05 using config file: evcc_tasmota_test.yaml
...
[tasmota] TRACE 2025/04/18 18:28:05 GET http://192.168.X.X/cm?cmnd=Status+0&password=&user=
[tasmota] TRACE 2025/04/18 18:28:05 {"Status":{"Module":43,"DeviceName":"Tasmota","FriendlyName":["Tasmota"],"Topic":"tasmota_9D58FC","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,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0},"StatusPRM":{"Baudrate":4800,"SerialConfig":"8E1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Power On","Uptime":"0T01:01:52","StartupUTC":"2025-04-18T15:26:13","Sleep":50,"CfgHolder":4617,"BootCount":239,"BCResetTime":"2021-03-30T16:22:05","SaveCount":4405,"SaveAddress":"FA000"},"StatusFWR":{"Version":"14.6.0(release-tasmota)","BuildDateTime":"2025-04-16T11:17:40","Boot":31,"Core":"2_7_8","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"339/699"},"StatusLOG":{"SerialLog":0,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["THIEROLF-WLAN",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C80001000680003C5A0A002800000000","00000080","00006000","00004000","00000000"]},"StatusMEM":{"ProgramSize":653,"Free":348,"Heap":22,"ProgramFlashSize":1024,"FlashSize":4096,"FlashChipId":"1640EF","FlashFrequency":40,"FlashMode":"DOUT","Features":["0809","8F9AC787","04368001","000000CF","010013C0","C000F981","00004004","00001000","54000020","00000080","00000000"],"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,62,!68","Sensors":"1,2,3,4,5,6","I2CDriver":"7"},"StatusNET":{"Hostname":"tasmota-9D58FC-6396",...,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0},"StatusMQT":{"MqttHost":"","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_9D58FC","MqttUser":"DVES_USER","MqttCount":0,"MqttTLS":0,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4},"StatusTIM":{"UTC":"2025-04-18T16:28:05Z","Local":"2025-04-18T17:28:05","StartDST":"2025-03-30T02:00:00","EndDST":"2025-10-26T03:00:00","Timezone":"+01:00","Sunrise":"05:52","Sunset":"19:45"},"StatusPTH":{"PowerDelta":0,"PowerLow":0,"PowerHigh":0,"VoltageLow":0,"VoltageHigh":0,"CurrentLow":0,"CurrentHigh":0,"MaxPower":0,"MaxPowerHold":10,"MaxPowerWindow":30,"MaxEnergy":0,"MaxEnergyStart":0},"StatusSNS":{"Time":"2025-04-18T17:28:05","ENERGY":{"TotalStartTime":"2021-03-30T16:22:05","Total":432.730,"Yesterday":0.000,"Today":0.001,"Power":10,"ApparentPower":18,"ReactivePower":14,"Factor":0.58,"Voltage":234,"Current":0.075}},"StatusSTS":{"Time":"2025-04-18T17:28:05","Uptime":"0T01:01:52","UptimeSec":3712,"Heap":22,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"POWER":"ON","Wifi":{"AP":1,...,"Channel":6,"Mode":"11n","RSSI":82,"Signal":-59,"LinkCount":1,"Downtime":"0T00:00:03"}}}
[tasmota] TRACE 2025/04/18 18:28:05 GET http://192.168.X:X/cm?cmnd=Status+8&password=&user=
[tasmota] TRACE 2025/04/18 18:28:05 {"StatusSNS":{"Time":"2025-04-18T17:28:05","ENERGY":{"TotalStartTime":"2021-03-30T16:22:05","Total":432.730,"Yesterday":0.000,"Today":0.001,"Power":10,"ApparentPower":18,"ReactivePower":14,"Factor":0.58,"Voltage":234,"Current":0.075}}}
Power:         0W
Energy:        432.7kWh
Charge status: B
Enabled:       true

@jeriox
Copy link
jeriox commented Apr 20, 2025

@jeriox kannst du den PR testen? Konnte nur meinen Sonoff Pow R2 mit Tasmota 14.6.0 erfolgreich testen.

hatte ich doch schon getan, siehe #19072 (comment).
Hab aber nochmal schnell gecheckt, funktioniert auch nach den letzten commits weiterhin problemlos.

@andig andig changed the title Tasmota: Enable SML Reader for more usage Tasmota: enable more usages for SML Apr 20, 2025
@andig andig merged commit a964688 into evcc-io:master Apr 20, 2025
5 of 6 checks passed
@thierolm thierolm deleted the tasmota/enable_sml_for_pv_charge_battery branch April 21, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devices Specific device support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0