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
22.29k stars 4.82k forks source link

Any Sonoff device compatible with a clamp on current meter such as STC-013 #3626

Closed c3reeman closed 6 years ago

c3reeman commented 6 years ago

Has anyone used or been able to use a clamp on current meter with any of the sonoff range ?

such as...

https://www.aliexpress.com/item/THGS-YHDC-30A-SCT013-0-100A-Non-invasive-AC-New-Sensor-Split-Core-Current-Transformer-New/32735255457.html?spm=a2g0s.13010208.99999999.272.69863c00L9G8aK

Its intended use is to monitor the current pulled from a cellar sump pump, accuracy isnt important really its just to get an indication of pump on/off. I know the obvious answer to this maybe use a sonoff POW R2, i did this however it failed and the onboard switch went open circuit after only a month of service... so the very thing that was supposed to monitor sump pump failure is the very thing that caused the failure ! A non invasive current monitor would eliminate this happening.

dajrekt commented 3 years ago

Thanks guys for your input

I have another question. Seems I have everything connected and configured but I'm not getting any readings from PZEM. Mine is V3 , someone above mentioned the same. Is there any issue with V3 or is it something wrong with my setup? I checked multiply times how is PZEM connected with hw655 and all looks good to me. 5V-5V , TX-RX, RX-TX , GND- GND. Any idea? ESP shows 0 everywhere . I also replaced HW and PZEM, same thing.

Regards

pmknowles commented 3 years ago

Have you selected PZEM-016 for Rx? Needs to be that for V3 cos RS485.

Regards

Phil K

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: dajrekt @.> Sent: Wednesday, June 23, 2021 12:39:52 AM To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Any Sonoff device compatible with a clamp on current meter such as STC-013 (#3626)

Thanks guys for your input

I have another question. Seems I have everything connected and configured but I'm not getting any readings from PZEM. Mine is V3 , someone above mentioned the same. Is there any issue with V3 or is it something wrong with my setup? I checked multiply times how is PZEM connected with hw655 and all looks good to me. 5V-5V , TX-RX, RX-TX , GND- GND. Any idea? ESP shows 0 everywhere .

Regards

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farendst%2FTasmota%2Fissues%2F3626%23issuecomment-866407134&data=04%7C01%7C%7C40fb13edc44c4639531008d935d708a5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600019939555638%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=H7q3eEg4QOx%2BB1kMbwSbcg0mEoXX45K9SySbNeGMT14%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI5KPM5V4GJJR3MZAG2GFJDTUENMRANCNFSM4FSBPY3Q&data=04%7C01%7C%7C40fb13edc44c4639531008d935d708a5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600019939565594%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ltY6kqwlwtiXXlCR0lzIitjyrxHNKP3ABU%2Be1kIQn1A%3D&reserved=0.

Montreal666 commented 3 years ago

Screenshot_20210622-235302_Office

pmknowles commented 3 years ago

I know I had an issue with V3 but I can't remember how I resolved it.

It may have been baud rates or something but if it comes to me I'll let you know.

Regards

Phil K

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: homeseer666 @.> Sent: Wednesday, June 23, 2021 4:54:35 AM To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Any Sonoff device compatible with a clamp on current meter such as STC-013 (#3626)

[Screenshot_20210622-235302_Office]https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F56667580%2F123033095-29dfb480-d3b5-11eb-9e60-e290b7dca905.jpg&data=04%7C01%7C%7Cf466a1bbc7054afab83108d935fa9e6f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600172778620180%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1szVlPIIJlJgI6DY3BFLeqmPFUFf6sW2Hs5xG9F2kdY%3D&reserved=0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farendst%2FTasmota%2Fissues%2F3626%23issuecomment-866501712&data=04%7C01%7C%7Cf466a1bbc7054afab83108d935fa9e6f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600172778620180%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=eXCi4JPKAra7cXPU22tC8SV8TecsMXyX6T7ZLzbGm9U%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI5KPM4TIBO5P26MJVTDZETTUFLHXANCNFSM4FSBPY3Q&data=04%7C01%7C%7Cf466a1bbc7054afab83108d935fa9e6f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600172778630133%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=U4VJVfoHu0d6%2FC%2BvUltSyuz9GC2QTQNdvsJAhsHqUWo%3D&reserved=0.

pmknowles commented 3 years ago

Might have been setting the module address to 1

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Philip Knowles @.> Sent: Wednesday, June 23, 2021 5:24:18 AM To: arendst/Tasmota @.>; arendst/Tasmota @.> Cc: Mention @.> Subject: Re: [arendst/Tasmota] Any Sonoff device compatible with a clamp on current meter such as STC-013 (#3626)

I know I had an issue with V3 but I can't remember how I resolved it.

It may have been baud rates or something but if it comes to me I'll let you know.

Regards

Phil K

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: homeseer666 @.> Sent: Wednesday, June 23, 2021 4:54:35 AM To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Any Sonoff device compatible with a clamp on current meter such as STC-013 (#3626)

[Screenshot_20210622-235302_Office]https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F56667580%2F123033095-29dfb480-d3b5-11eb-9e60-e290b7dca905.jpg&data=04%7C01%7C%7Cf466a1bbc7054afab83108d935fa9e6f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600172778620180%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1szVlPIIJlJgI6DY3BFLeqmPFUFf6sW2Hs5xG9F2kdY%3D&reserved=0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farendst%2FTasmota%2Fissues%2F3626%23issuecomment-866501712&data=04%7C01%7C%7Cf466a1bbc7054afab83108d935fa9e6f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600172778620180%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=eXCi4JPKAra7cXPU22tC8SV8TecsMXyX6T7ZLzbGm9U%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI5KPM4TIBO5P26MJVTDZETTUFLHXANCNFSM4FSBPY3Q&data=04%7C01%7C%7Cf466a1bbc7054afab83108d935fa9e6f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600172778630133%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=U4VJVfoHu0d6%2FC%2BvUltSyuz9GC2QTQNdvsJAhsHqUWo%3D&reserved=0.

dajrekt commented 3 years ago

Have you selected PZEM-016 for Rx? Needs to be that for V3 cos RS485. Regards Phil K

I have . but mine is opposite. GPIO1 is RX and GPIO3 is TX and module type is Generic 18 I think.

dajrekt commented 3 years ago

Might have been setting the module address to 1

Do you mean change it to Sonoff basic? I haven't try it , thought it doesn't matter

pmknowles commented 3 years ago

No there’s a command to set the ModBus Address of the PZEM to 1 – it’s in the Power Measurement section of ommands

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: @.> Sent: 23 June 2021 10:40 To: @.> Cc: @.>; @.> Subject: Re: [arendst/Tasmota] Any Sonoff device compatible with a clamp on current meter such as STC-013 (#3626)

Might have been setting the module address to 1

Do you mean change it to Sonoff basic? I haven't try it , thought it doesn't matter

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farendst%2FTasmota%2Fissues%2F3626%23issuecomment-866689209&data=04%7C01%7C%7C688c190c32064758866b08d9362ae7ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600380163618706%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=T7QlRQzvg1xbh4oQsGi0QX9gjKicI9NrYqNIYFzbOIU%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI5KPM2Z5RWKZ2HN3LIZ4PTTUGTX5ANCNFSM4FSBPY3Q&data=04%7C01%7C%7C688c190c32064758866b08d9362ae7ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600380163628657%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=fy5FfEGjKrQ3amEAyQOMab8NYNtjv%2FR7jvZARjsUrUM%3D&reserved=0.

dajrekt commented 3 years ago

ModBus Address of the PZEM to 1

is it this one ModuleAddress 1 ?

pmknowles commented 3 years ago

Yes

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: @.> Sent: 23 June 2021 12:17 To: @.> Cc: @.>; @.> Subject: Re: [arendst/Tasmota] Any Sonoff device compatible with a clamp on current meter such as STC-013 (#3626)

ModBus Address of the PZEM to 1

is it this one ModuleAddress 1 ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farendst%2FTasmota%2Fissues%2F3626%23issuecomment-866750506&data=04%7C01%7C%7C74891d4ae0984cc112e708d936388b4d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600438743304434%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Mc1Ulh%2FL2nQP9nSTBACSp7bE8MD%2BRmuTA7HeEIAOoI8%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI5KPM7W3HM4AB2NDUY5YB3TUG7GBANCNFSM4FSBPY3Q&data=04%7C01%7C%7C74891d4ae0984cc112e708d936388b4d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600438743314386%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=nSbU6cfmusUjUBK2eV97l%2FoA%2B5NJxZJbf%2Bc5TGI1%2Frs%3D&reserved=0.

dajrekt commented 3 years ago

Yes

thanks, I will check it when I'm back home,

Is there a chance that I missed something and the HW-655 must be flashed with something as well?

pmknowles commented 3 years ago

No the HW-655 just acts as a serial voltage converter to the relay and pin header. It probably won’t work until the serial log is disabled on reboot. It may be interesting to connect an FTDI to the oins to see what Tasmota is sending out. It’s worth trying to swap Rx Tx as there has been some issues with incorrect screen prints.

Regards

Phil K

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: @.> Sent: 23 June 2021 14:30 To: @.> Cc: @.>; @.> Subject: Re: [arendst/Tasmota] Any Sonoff device compatible with a clamp on current meter such as STC-013 (#3626)

Yes

thanks, I will check it when I'm back home,

Is there a chance that I missed something and the HW-655 must be flashed with something as well?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farendst%2FTasmota%2Fissues%2F3626%23issuecomment-866837876&data=04%7C01%7C%7C06ce7b56087046c1e54f08d9364b14c1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600518359073619%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=WUkyybXu%2FNHJPhQ4X2wA5jz7IYhNXSeMSwV69Gwb8J4%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI5KPM2WURNEIR4LG7LE5ADTUHOXTANCNFSM4FSBPY3Q&data=04%7C01%7C%7C06ce7b56087046c1e54f08d9364b14c1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600518359073619%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=PzBlzdTO76DySlooNgJCu3nVfUksqyE458vSCvJr6u0%3D&reserved=0.

dajrekt commented 3 years ago

It has started working! This is my config

20210623_185927

I also set the address of the modbus to 1 with this command in the console ModuleAddress 1

This is comparison with Sonoff Pow R2 20210623_180718 (1)

Now I need to build another two meters and call for electrician to mess with my fuse box :)

Thanks for your help!

pmknowles commented 3 years ago

Yes I just spotted you had Tx and Rx on wrong GPIOs

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: dajrekt @.> Sent: Wednesday, June 23, 2021 10:28:34 PM To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Any Sonoff device compatible with a clamp on current meter such as STC-013 (#3626)

It has started working! This is my config

[20210623_185927]https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F78508173%2F123169939-d1bab800-d471-11eb-8d2d-1be3aebd70af.jpg&data=04%7C01%7C%7Ca3eeca3faa484099e10208d9368ddb96%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600805163689569%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=n3I5mBrGy4k4EOJpDjDv%2F4HRFXZtf9eNCx8%2Fv72mGCs%3D&reserved=0

I also set the address of the modbus to 1 with this command in the console ModuleAddress 1

This is comparison with Sonoff Pow R2 [20210623_180718 (1)]https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F78508173%2F123170152-16465380-d472-11eb-9724-4b2d83501d4b.jpg&data=04%7C01%7C%7Ca3eeca3faa484099e10208d9368ddb96%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600805163689569%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9HJ8xuNeU5BNbU9s5U0YF1hpWuPGWKdS5rSqJucA0IE%3D&reserved=0

Now I need to build another two meters and call for electrician to mess with my fuse box :)

Thanks for your help!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farendst%2FTasmota%2Fissues%2F3626%23issuecomment-867171777&data=04%7C01%7C%7Ca3eeca3faa484099e10208d9368ddb96%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600805163699522%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=EzOgMnSarANB%2FEYz5PyVd9LLz%2FrmBIfrsjNLUcmNk3A%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI5KPMYL67MRAR7XL6K5QOTTUJGYFANCNFSM4FSBPY3Q&data=04%7C01%7C%7Ca3eeca3faa484099e10208d9368ddb96%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600805163699522%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=i2VB3esGBaNh75HjuKuh35g%2FmbpAw3ERVGus3TFLyLc%3D&reserved=0.

Montreal666 commented 3 years ago

Additonnal note: If access is easier, you can also use the split cores directly at the breaker box; Be careful to turn off main power or have an electrician do it.