Comments (10)
Cool, I will add it to the main branch and update the README with info about the Sanxing SX631 meter 👍
from esphome-p1reader.
Yes, please do that. I have been running mine fine since a week ago now with no issues whatsoever.
from esphome-p1reader.
Fixed in #29 👍
from esphome-p1reader.
@Spitfire69 Hi! I have a few questions for you :-)
First of all, did you have any problems with getting this to work except from the buffer? I cant get it to work, i get the data from the meter but i get crc fail. What hardware are you using?
And iam interrested in what data you get from the meter as i dont get very much from my sanxing (dont have it in front of me right now) but i only think its like 8 lines and no voltages och individual phase data at all.
Looking forward for you answer :-)
from esphome-p1reader.
Hi, I’m using a Wemos D1 mini and it has been working flawlessly for over a month now. As mentioned the only thing needed was to extend the buffer. However before I did that I got CRC errors so my suggestion is to just add more bytes and test. Good luck!
from esphome-p1reader.
Ok, iam using D1 mini, tried increasing buffer to 100 (was 60, but i dont know what it was when you made yours) and still no luck with crc :-(
So for now i bypassed the crc check and now i get data to home assistant but the energy dashboard is still blank.. well well..
Hi, I’m using a Wemos D1 mini and it has been working flawlessly for over a month now. As mentioned the only thing needed was to extend the buffer. However before I did that I got CRC errors so my suggestion is to just add more bytes and test. Good luck!
from esphome-p1reader.
@Spitfire69
What does your sanxing output?
this is what i get from mine, would like to compare your output with mine
[21:43:03][D][data:265]: /AUX5
[21:43:03][D][data:265]: 1-3:0.2.8(50)
[21:43:03][D][data:265]: 0-0:1.0.0(220119214300W)
[21:43:03][D][data:265]: 0-0:96.1.1(SANXING SMART ELECTRIC)
[21:43:03][D][data:265]: 1-0:1.8.1(031189.251kWh)
[21:43:03][D][data:265]: 1-0:1.8.2(000000.000kWh)
[21:43:03][D][data:265]: 1-0:2.8.1(000000.000kWh)
[21:43:03][D][data:265]: 1-0:2.8.2(000000.000kWh)
[21:43:03][D][data:265]: 0-0:96.14.0(RATE1)
[21:43:03][D][data:265]: 1-0:1.7.0(04.407kW)
[21:43:03][D][data:265]: 1-0:2.7.0(00.000kW)
[21:43:04][D][data:265]: !8B77
[21:43:04][I][crc:276]: Telegram read. CRC: E7C2 = 8B77. PASS = NO
from esphome-p1reader.
Edit: The output below is of course the output to HA not the output from the meter…I will see if I can fetch that to. If I recall right it was the 0-0:1.0.0 or 0-0:96.1.1 string that was too long (a long ID string) and you do not seem to have the same output at all.
Yours is not even close…has Vattenfall installed your or is it a standard Sanxing? If that is the case I guess they have different firmware.
Here’s my output:
[21:46:43][I][crc:276]: Telegram read. CRC: 84C3 = 84C3. PASS = YES
[21:46:43][D][sensor:113]: 'Cumulative Active Import': Sending state 1905.56995 kWh with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Cumulative Active Export': Sending state 6.24500 kWh with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Cumulative Reactive Import': Sending state 0.00100 kvarh with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Cumulative Reactive Export': Sending state 761.00598 kvarh with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Active Import': Sending state 2.46200 kW with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Active Export': Sending state 0.00000 kW with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Reactive Import': Sending state 0.00000 kvar with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Reactive Export': Sending state 0.74100 kvar with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Active Import Phase 1': Sending state 0.11300 kW with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Active Export Phase 1': Sending state 0.00000 kW with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Active Import Phase 2': Sending state 0.12500 kW with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Active Export Phase 2': Sending state 0.00000 kW with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Active Import Phase 3': Sending state 2.22300 kW with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Active Export Phase 3': Sending state 0.00000 kW with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Reactive Import Phase 1': Sending state 0.00000 kvar with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Reactive Export Phase 1': Sending state 0.16300 kvar with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Reactive Import Phase 2': Sending state 0.02600 kvar with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Reactive Export Phase 2': Sending state 0.00000 kvar with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Reactive Import Phase 3': Sending state 0.00000 kvar with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Momentary Reactive Export Phase 3': Sending state 0.60500 kvar with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Voltage Phase 1': Sending state 231.89999 V with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Voltage Phase 2': Sending state 232.00000 V with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Voltage Phase 3': Sending state 227.89999 V with 3 decimals of accuracy
[21:46:43][D][sensor:113]: 'Current Phase 1': Sending state 0.90000 A with 3 decimals of accuracy
from esphome-p1reader.
@Spitfire69 Can you please paste the meter output instead of what esphome p1-reader sends to home assistant? :-)
from esphome-p1reader.
@Slamkryp @Spitfire69 are you using 115200 baud and 8N1 (inverted) ? For some reason, my ESP32C3 cannot read any data from S34U18, but other meters such as L+G E360 work just fine.
from esphome-p1reader.
Related Issues (20)
- Hungarian Sanxing SX631 Read issue HOT 2
- ESP32
- D1 Mini suddenly needs external power to start HOT 3
- esphome encryption key instructions HOT 2
- Extend the esp to act as active repeater to connect additional P1 device HOT 2
- HDLC support missing (is AIDON meters really supported?)
- Instability Frequent Drop out HOT 3
- Compile Error with esp-idf Framework HOT 2
- Add XIAO ESP32C3 to hardware section of readme.md
- Aidon meter and slimmelezer-wt32-eth01 HOT 5
- Landis Gyr e360 lte HOT 1
- SlimmeLezer+ with HDLC stops working HOT 1
- dual tariff HOT 2
- CRC Pass=no after a while HOT 3
- Update interval HOT 3
- Strange readings HSP Meter HAN port
- Problem error
- Custom components are deprecated HOT 3
- Slimmelezer not response after HAN plugged HOT 1
- CRC error, start block occasionally corrupted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-p1reader.