-
Notifications
You must be signed in to change notification settings - Fork 20
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
Use with Shelly 3EM MQTT? #76
Comments
Yes. You could subscribe all instantaneous power topics and use a template sensor to provide the sum:
|
Please feel to ask additional questions if the idea doesn't solve your issue. Otherwise please close the issue! |
Okay, that looks good! I will give it a try! |
Good point. Extracting the value from a json response should also be possible. Please take a look at the If you are unable to create a proper solution by combining a template sensor and the http request please ping me again. Something like this should do the job: https://community.home-assistant.io/t/esphome-how-to-read-json-from-web/304034/20?u=syssi |
Got it working with your links! Thanks a lot!
|
Thank you for this possibility to read out the Shelly3EM directly!
|
I have been using the Shelly3EM query for some time now and occasionally get this error:
I read it would be better using
Everything else has remained the same. |
I don't see the benefit of storing the response in a global variable. Do I miss something? |
I cant' t explain it either. But I read some reports that people had success with this measure. E.g. here: |
My yaml includes the Wifi signal sensor. The frequent errors seem to occur when the wifi signal is weak. That does not explains to me the allocate memory error. |
This is my guess: The error looks critical but it isn't. Every now and then the Shelly doesn't provide a valid response. Let's assume the connection gets dropped and there is no response at all. In this case this implementation
tries to |
Please try:
|
Good catch! If the requests pile up there could be a serious memory issue for sure. |
Unfortunately no difference, the problem seems to be within
|
May be the error is raised a the
|
No Change in the error message. Should I use a different
|
Oh, you don't log
|
Oh sorry, I did a mistake, I compiled the wrong version.
Combined with the shorter http_request timeout it should be stable. Thank you for your help!! And to complete the picture, this is my current working version:
|
Hi!
Fantastic esphome component and great work!
I was wondering if it is possible to get it working with a Shelly 3EM with MQTT enabled. The Shelly does not provide a topic with total power consumption. It has a topic for instantaneous active power per channel (https://shelly-api-docs.shelly.cloud/gen1/#shelly-3em-mqtt). Can we do some sort of calculation and sum up the three channels (topics) in the YAML?
Or can i get It from the json of the HTTP status page? This looks like this:
Best regards!
The text was updated successfully, but these errors were encountered: