ME3000SP readings #3
Replies: 28 comments 47 replies
-
Hi Somersetdude,
I will try the new version soon so if you fix the problem let me know as I will be in the same boat. |
Beta Was this translation helpful? Give feedback.
-
If you use the Node-Red flow supplied, the function node formats the input from the inverter (the RAW MQTT string from Sofar2MQTT) and outputs the formatted information. //running_state //grid_voltage V //grid_current A //grid_freq Hz //battery_power W //battery_voltage V //battery_current A //grid_power W //consumption W //SolarPV W //today_generation kWh //today_exported kWh //today_purchase kWh //today_consumption kWh //solarPVAmps A node.status({fill:"green", shape:"dot", text:""}) |
Beta Was this translation helpful? Give feedback.
-
@somersetdude, Sorry I can't help with the node red stuff as I don't use
it. Just FYI you can get the info into HA by installing the MQTT broker in
HA and listening to the topic where the invertr is sending the data. You
have done it allready with the Pylontech stuff. There sould be plenty of
info out there on node red to HA maybe check out Dr Zs chanel on youtube.
A domingo, 14/03/2021, 12:38, somersetdude ***@***.***>
escreveu:
… @davies8172 <https://github.com/davies8172>
i have installed node red and have it listening on the mqtt, installed the
json function but i have no idea how to get the data out into HA.... can
you give be some pointers please ?
currently i can link the mqtt through the function and out on a debug but
its just the same message that came in
thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOGAXECJAWZBOE7MTPHLBMTTDSU5ZANCNFSM4YY6IJHA>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi both.
Thanks for helping each other to get the most out of this project.
Sorry I haven’t chipped in before now but I’m not a big Home Assistant person. Most of I do is in Node-Red and then fed into OpenEnergyMonitor.
There is a great group on Facebook at https://www.facebook.com/groups/2477195449252168/?ref=share for Sofar owners using either this or a similar Raspberry Pi based solution. Well worth joining if you haven’t found them already.
On 15 Mar 2021, at 12:07, somersetdude ***@***.***> wrote:
No problem i have node Red working for me now and the code supplied does all the conversions, works very well and integrates into HA very nicely.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#3 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADFHULJEDX2QVKXUAP72H5TTDXZ6JANCNFSM4YY6IJHA>.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for this great project. I get to work! |
Beta Was this translation helpful? Give feedback.
-
Many thanks for this super project! |
Beta Was this translation helpful? Give feedback.
-
ok I implemented this, have to wait to see if this really works (needs more testing...) on homeassistant In configuration.yaml
|
Beta Was this translation helpful? Give feedback.
-
when in discharging I used the battery power and subtracted the current that is the true amp to multiply with the battery voltage... correct? |
Beta Was this translation helpful? Give feedback.
-
sometimes I had some weird figures in the beginning of it charging/descharging say 400000w... I changed the code above with this ones for this two variables, I believe I prevent it now... I also change my battery_power identity to battery-power not need to change, but I changed it (it as no impact on the energy tab, because the next two other sensor/identity "eats" the info from the mqtt (from the esp8266)... value_json.battery-power the value from the esp and thus from the sofar this is just an identity with no impact on the energy tab, because I used allways the info directly from the esp...for the battery decharge and charge, they are the ones impacting the energy tab...
|
Beta Was this translation helpful? Give feedback.
-
yap! podes falar em português se quiseres...
Português que habita a occitania France.
I made it work with the changing in yaml I made. I put it all... though it lacks the enphase integration... here my yaml in integral... it lacks the secrets of the webcams:
```
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
octoprint:
host: xxxxxxxxxxxxxx
api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
template:
- sensor:
name: Grid Export Power
state_class: measurement
icon: mdi:transmission-tower
unit_of_measurement: W
device_class: power
state: >
{{ [0, states('sensor.enphase_new_current_power_production') | int - states('sensor.enphase_new_current_power_consumption') | int ] | max }}
- sensor:
name: Grid Import Power
state_class: measurement
icon: mdi:transmission-tower
unit_of_measurement: W
device_class: power
state: >
{{ [0, states('sensor.enphase_new_current_power_consumption') | int - states('sensor.enphase_new_current_power_production') | int ] | max }}
sensor:
- platform: integration
name: Energy from battery
source: sensor.battery_decharge
unit_prefix: k
unit_time: h
method: left
- platform: integration
name: energy to battery
source: sensor.battery_charge
unit_prefix: k
unit_time: h
method: left
- platform: integration
name: Grid Export Energy
source: sensor.grid_export_power
unit_prefix: k
unit_time: h
method: left
- platform: integration
name: Grid Import Energy
source: sensor.grid_import_power
unit_prefix: k
unit_time: h
method: left
- platform: mqtt
name: "Temperatura sump"
state_topic: "DHT11_temperature"
unit_of_measurement: '°C'
- platform: mqtt
name: "humidade sump"
state_topic: "DHT11_humidity"
unit_of_measurement: '%'
icon: mdi:water-percent
- platform: mqtt
name: "Temperatura água"
state_topic: "DS18b20_topic"
unit_of_measurement: '°C'
value_template: "{{ value_json - 0.5 }}"
icon: mdi:coolant-temperature
device_class: temperature
- platform: mqtt
name: "Estado"
state_topic: "sensor/estado"
- platform: mqtt
name: "Potência Violeta"
state_topic: "sensor/Potência luz"
unit_of_measurement: '%'
- platform: mqtt
name: "Potência Branco"
state_topic: "sensor/Potência luz2"
unit_of_measurement: '%'
- platform: mqtt
name: "Potência Azul"
state_topic: "sensor/Potência luz3"
unit_of_measurement: '%'
- platform: mqtt
name: "Horas"
state_topic: "sensor/Horas"
- platform: mqtt
name: "Minutos"
state_topic: "sensor/Minutos"
- platform: mqtt
name: "Segundos"
state_topic: "sensor/Segundos"
- platform: mqtt
name: "Bomba de reposição"
state_topic: "sensor/Bomba de reposição"
- platform: mqtt
name: "Frasco escumador"
state_topic: "sensor/frasco escumador"
- platform: mqtt
name: "TDS"
state_topic: "sensor/tdsValue"
unit_of_measurement: 'º'
icon: mdi:test-tube
sensor sofar:
- platform: mqtt
name: "running_state"
state_topic: "Sofar2mqtt/state"
value_template: "{{ value_json.running_state }}"
- platform: mqtt
name: "battery-power"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "w"
device_class: power
value_template: >
{% if ( value_json.battery_power < 4000) %}
{{ value_json.battery_power * 10 }}
{% else %}
{{ 0 }}
{% endif %}
- platform: mqtt
name: "battery_ciclos"
state_topic: "Sofar2mqtt/state"
value_template: "{{ value_json.battery_cycles }}"
- platform: mqtt
name: "battery_temp"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "°C"
device_class: temperature
value_template: "{{ value_json.battery_temp}}"
- platform: mqtt
name: "inverterHS_temp"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "°C"
device_class: temperature
value_template: "{{ value_json.inverterHS_temp}}"
- platform: mqtt
name: "inverter_temp"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "°C"
device_class: temperature
value_template: "{{ value_json.inverter_temp }}"
- platform: mqtt
name: "battery_voltage"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "V"
device_class: voltage
value_template: "{{ value_json.battery_voltage / 100}}"
- platform: mqtt
name: "grid_voltage"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "V"
device_class: voltage
value_template: "{{ value_json.grid_voltage / 10}}"
- platform: mqtt
name: "battery_current"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "mA"
device_class: current
value_template: "{{ value_json.battery_current }}"
- platform: mqtt
name: "grid_power"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "mA"
device_class: current
value_template: "{{ value_json.grid_power }}"
- platform: mqtt
name: "SolarPV"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "mA"
device_class: current
value_template: "{{ value_json.solarPV }}"
- platform: mqtt
name: "batterySOC"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value_json.batterySOC }}"
- platform: mqtt
name: "battery_power"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "w"
device_class: power
value_template: >
{% if ( value_json.battery_power < 4000) %}
{{ value_json.battery_power }}*10
{% else %}
{{ 0 }}
{% endif %}
- platform: mqtt
name: "battery_decharge"
state_topic: "Sofar2mqtt/state"
state_class: measurement
icon: mdi:transmission-tower
unit_of_measurement: W
device_class: power
value_template: >
{% if is_state('sensor.running_state', '4') and (value_json.battery_current > 32767 ) %}
{{ ((65535 - value_json.battery_current) * (value_json.battery_voltage)) / 10000 }}
{% else %}
{{ 0 }}
{% endif %}
- platform: mqtt
name: "battery_charge"
state_topic: "Sofar2mqtt/state"
state_class: measurement
icon: mdi:transmission-tower
unit_of_measurement: W
device_class: power
value_template: >
{% if ( value_json.battery_power < 4000) and is_state('sensor.running_state', '2') %}
{{ value_json.battery_power * 10 }}
{% else %}
{{ 0 }}
{% endif %}
- platform: enphase_envoy
name: enphase_new
username: installer
password: xxxxxxxxxxxx
ip_address: 192.168.1.73
scan_interval: 5
monitored_conditions:
- production
- consumption
- daily_production
- seven_days_production
- lifetime_production
- inverters
# Calculate Remaining Power
history:
recorder:
db_url: ***@***.***/homeassistant?charset=utf8mb4
# Everything is included by default.
# Ensure you are keeping only what you need to keep DB small
include: # Include everything you graph and will want to see later
domains:
- sensor
- binary_sensor
- switch
- light
# Everything is included by default.
remote:
- platform: xiaomi_miio
host: xxxxxxxxxx
token: xxxxxxxxxxxxxxxxxxxxxx
commands:
tv_vol_up:
command:
- raw:tllsNyt1am1WrFBotFolBoNCulBu9BoNzoNNoNBplJo9BoNBqFCAPK7Ueg0IAsgAPAA8ADwADs9JvNBs9RodCogA51Wh0G1Umh0Kg0mi00Ac6lSaHTbPSaKA+V5AHKjAV7QaDPZ6
tv_vol_down:
command:
- raw:tllsNyt1am1Vq1BodZolBoNEoVBu9BoNZu9ZoNBpVno9BoNBu9CAPKq1GxgFEAB4AHgAeAAlRotCptRqNCoVTot4oQBxT2eg
tv_mute:
command:
- raw:tllsNyt1am1WulBoc0olBoNDu1Bu9BoNsqNZoNBoVzpFBoNBudYu9FAGIADwAPAA8ACKjRbRQajTaFQamAGV5qIA5UWhUG70WhUm70WiUqggDlUaLRAIytQEZWsCvwK7pNBA
tv_on:
command:
- raw:tllsNyt1am1WrFBot3olBoNDp9Bu9BoN0u9ZoNBqE4o9BoNBudYu9FAGIADwAPAA8ACKjRbRQajTaFQamAGdRADKi0Kg3ei0KkgBlSqCAOVRotEAjK1ABlawK9oNBns9
tv_apps:
command:
- raw:tllsNyt1am1WrFBo8wolBoNErVCs9BoN5o00oVBod4s1BqNBAA8ADwAPAA+gghnRaDQaEAGdJADIBFgAzu4DKgIlUgAyqYFe0Ggz2eg=
#Enable Cameras
camera:
xxxxxxxxxxxxxxxx
#Enable stream
stream:
media_player:
- platform: enigma2
host:xxxxxxxxxx
```
|
Beta Was this translation helpful? Give feedback.
-
with the changing in yaml it should appear all the energy tabs needed... I have enphase...so.
…________________________________
From: cliffdude ***@***.***>
Sent: Thursday, September 30, 2021 5:04 PM
To: cmcgerty/Sofar2mqtt ***@***.***>
Cc: zambujal ***@***.***>; Mention ***@***.***>
Subject: Re: [cmcgerty/Sofar2mqtt] ME3000SP readings (Discussion #3)
@zambujal<https://github.com/zambujal> Looks great. Did you get the new energy tab in homeassistant working. I have been having trouble getting the values to show up in there and also with the odd crazy readings coming from the sofar2mqtt. Greetings from Albufeira, PT!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALLQQOOD6343U3UMQ242Y5LUESKB7ANCNFSM4YY6IJHA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi Chaps. - Any help with this would be appreciated. (ive been using home assistant for about 10 days now - muddling through message boards as i go :)) |
Beta Was this translation helpful? Give feedback.
-
Hi,
With sofar2mqtt usb cable plugged into your laptop and the inverter connected to the modbus wires, you can monitor it using the serial monitor in Arduino IDE. That will give some messages like the command received and the power read from the inverter.
You need to fill in the MQTT parameters to point it at you mqtt server. Mine is called "mqtt" but yours is probably just the IP address of your raspberry pi on line 64. The port will be correct but the username and password need configuring or leaving blank, depending how you set up your mqtt server.
I don't use HA as I find it cumbersome, but your mileage may vary.
Colin
…________________________________
From: Freitag83 ***@***.***>
Sent: Wednesday, February 9, 2022 10:45:43 PM
To: cmcgerty/Sofar2mqtt ***@***.***>
Cc: Colin McGerty ***@***.***>; Mention ***@***.***>
Subject: Re: [cmcgerty/Sofar2mqtt] ME3000SP readings (Discussion #3)
Hi Chaps. - Any help with this would be appreciated. (ive been using home assistant for about 10 days now - muddling through message boards as i go :))
I have worked through this project and think i have the little board working.
(i have built it and flashed it - I am having to wait another 3 weeks for the little screen to arrive).
1- Is there another way I can see if its working?
2- I can see it connected to my wifi as 'sofar2mqtt'
3- I am using home assistant on a RPI - full home assistant OS running the RPI.
4- i believe i need to open MQTT in HA from 'Add Integration'?
5- What do i enter into the MQTT 'broker / port' do i need user and password?
6- When i edited the ME3000SP file i only edited the wifi name and password.
7- I am presuming that as its on the same network the HA should automatically find the sofar2mqtt?
—
Reply to this email directly, view it on GitHub<#3 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADFHULJGCPVP6UNCBUA34ITU2LVBPANCNFSM4YY6IJHA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Colin has provided an option for diagnostics of the board. You don't need
the display for it to work.
Regarding HA install Mosquito MQTT from the supervisor menu and setup your
user and password. Do not use SSL as it will complicate things. You can
test mqtt using home assistants integrations menu, select mqtt, listen or
via an App on android. Mqtizer works well. Just join the # topic to see all
messages.
Richard
A quinta, 10/02/2022, 02:16, cmcg ***@***.***> escreveu:
… Hi,
With sofar2mqtt usb cable plugged into your laptop and the inverter
connected to the modbus wires, you can monitor it using the serial monitor
in Arduino IDE. That will give some messages like the command received and
the power read from the inverter.
You need to fill in the MQTT parameters to point it at you mqtt server.
Mine is called "mqtt" but yours is probably just the IP address of your
raspberry pi on line 64. The port will be correct but the username and
password need configuring or leaving blank, depending how you set up your
mqtt server.
I don't use HA as I find it cumbersome, but your mileage may vary.
Colin
________________________________
From: Freitag83 ***@***.***>
Sent: Wednesday, February 9, 2022 10:45:43 PM
To: cmcgerty/Sofar2mqtt ***@***.***>
Cc: Colin McGerty ***@***.***>; Mention ***@***.***>
Subject: Re: [cmcgerty/Sofar2mqtt] ME3000SP readings (Discussion #3)
Hi Chaps. - Any help with this would be appreciated. (ive been using home
assistant for about 10 days now - muddling through message boards as i go
:))
I have worked through this project and think i have the little board
working.
(i have built it and flashed it - I am having to wait another 3 weeks for
the little screen to arrive).
1- Is there another way I can see if its working?
2- I can see it connected to my wifi as 'sofar2mqtt'
3- I am using home assistant on a RPI - full home assistant OS running the
RPI.
4- i believe i need to open MQTT in HA from 'Add Integration'?
5- What do i enter into the MQTT 'broker / port' do i need user and
password?
6- When i edited the ME3000SP file i only edited the wifi name and
password.
7- I am presuming that as its on the same network the HA should
automatically find the sofar2mqtt?
—
Reply to this email directly, view it on GitHub<
#3 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/ADFHULJGCPVP6UNCBUA34ITU2LVBPANCNFSM4YY6IJHA
>.
Triage notifications on the go with GitHub Mobile for iOS<
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android<
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOGAXEBL2OZSUGN2GOPG6P3U2MNYJANCNFSM4YY6IJHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
many thanks guys. Im slowly making headway. so ive sound the serial monitor and after a little playing have got it 'connected' This is the error message im getting.⸮⸮⸮
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Looks like your WiFi and Mqtt are working fine but the two wire connection to the inverter in not. Have you tried reversing the wires? The inverter should display RS232 on the LCD when it detects a compatible device.
Thanks,
Colin
…________________________________
From: Freitag83 ***@***.***>
Sent: Friday, February 11, 2022 7:28:03 PM
To: cmcgerty/Sofar2mqtt ***@***.***>
Cc: Colin McGerty ***@***.***>; Mention ***@***.***>
Subject: Re: [cmcgerty/Sofar2mqtt] ME3000SP readings (Discussion #3)
many thanks guys. Im slowly making headway.
so ive sound the serial monitor and after a little playing have got it 'connected'
Im presuming this is to my RPI (homeassistant)
This is the error message im getting.
⸮⸮⸮
Connecting to BTHubF1234
.......
WiFi connected - ESP IP address: 192.168.1.180
Set start up mode: Auto
Attempting MQTT connection...connected
Get runstate: Error: invalid data frame
Send heartbeat
Error: invalid data frame
Get runstate: Error: invalid data frame
I have also been on youtube and think i have mosquitto mqtt working in my home assistant.
I have listened for '#' and i can see the Sofar2mqtt is talking (i think) but no message.
Listening to
Message 43 received on Sofar2mqtt/state at 7:12 PM:
{}
QoS: 0 - Retain: false
Message 42 received on Sofar2mqtt/state at 7:12 PM:
{}
QoS: 0 - Retain: false
note: my little board (is that a mqtt server?) is connected to my inverter.
is it not receiving the info from the me3000?
—
Reply to this email directly, view it on GitHub<#3 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADFHULLFPWENZHFJFB4EQYDU2VPMHANCNFSM4YY6IJHA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
That’s correct. Near the top of the code you see the line “uint8_t slaveId = 0x01;”
This the address of the inverter. It should be set to 01 by default and never needs changing unless you have more than one inverter.
Thanks,
Colin
…________________________________
From: Freitag83 ***@***.***>
Sent: Friday, February 11, 2022 8:05:43 PM
To: cmcgerty/Sofar2mqtt ***@***.***>
Cc: Colin McGerty ***@***.***>; Mention ***@***.***>
Subject: Re: [cmcgerty/Sofar2mqtt] ME3000SP readings (Discussion #3)
do i need to address the sofar2mqtt to the inverter so it knows where to look?
in the ME file all I have changed are the WIFI settings and the MQTT parameters
—
Reply to this email directly, view it on GitHub<#3 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADFHULO2CQYL3MEA4HOYJWLU2VTZPANCNFSM4YY6IJHA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the help
Yes tried swapping the wires round but no difference.
I have ordered a replacement rs232 board incase that’s the issue.
I will check out the inverter display tomorrow.
Again thanks for the help
TF
… On 11 Feb 2022, at 22:18, cmcg ***@***.***> wrote:
Hi,
Looks like your WiFi and Mqtt are working fine but the two wire connection to the inverter in not. Have you tried reversing the wires? The inverter should display RS232 on the LCD when it detects a compatible device.
Thanks,
Colin
________________________________
From: Freitag83 ***@***.***>
Sent: Friday, February 11, 2022 7:28:03 PM
To: cmcgerty/Sofar2mqtt ***@***.***>
Cc: Colin McGerty ***@***.***>; Mention ***@***.***>
Subject: Re: [cmcgerty/Sofar2mqtt] ME3000SP readings (Discussion #3)
many thanks guys. Im slowly making headway.
so ive sound the serial monitor and after a little playing have got it 'connected'
Im presuming this is to my RPI (homeassistant)
This is the error message im getting.
⸮⸮⸮
Connecting to BTHubF1234
.......
WiFi connected - ESP IP address: 192.168.1.180
Set start up mode: Auto
Attempting MQTT connection...connected
Get runstate: Error: invalid data frame
Send heartbeat
Error: invalid data frame
Get runstate: Error: invalid data frame
I have also been on youtube and think i have mosquitto mqtt working in my home assistant.
I have listened for '#' and i can see the Sofar2mqtt is talking (i think) but no message.
Listening to
Message 43 received on Sofar2mqtt/state at 7:12 PM:
{}
QoS: 0 - Retain: false
Message 42 received on Sofar2mqtt/state at 7:12 PM:
{}
QoS: 0 - Retain: false
note: my little board (is that a mqtt server?) is connected to my inverter.
is it not receiving the info from the me3000?
—
Reply to this email directly, view it on GitHub<#3 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADFHULLFPWENZHFJFB4EQYDU2VPMHANCNFSM4YY6IJHA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Yay. Listen to a topic Listening to Message 343 received on Sofar2mqtt/state at 5:35 PM: |
Beta Was this translation helpful? Give feedback.
-
It is normal to not get all the data on each mqtt packet. Mine does the
same thing, now it is a home assistant issue with h9w you setup your
sensors. I can send you some of my yaml code if you wish.
A domingo, 13/02/2022, 17:40, Freitag83 ***@***.***> escreveu:
… Yay.
More progress today.
The RS485 board must have been faulty, swapped it out and it now connects
and transfers data back and forth.
I've set up the sensors but they are working intermittently. When i check
the MQTT and listen for # I am not getting all the data each ping. This is
causing my sensors to read 0 most of the time.
Listen to a topic
Listening to
Message 343 received on Sofar2mqtt/state at 5:35 PM:
{
"battery_current": 64242,
"grid_power": 0,
"consumption": 55
}
QoS: 0 - Retain: false
Message 342 received on Sofar2mqtt/state at 5:35 PM:
{
"battery_voltage": 4810,
"inverter_temp": 31,
"inverterHS_temp": 20,
"solarPVAmps": 45
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOGAXEBSDEXA5BVD54DTXBLU27UJLANCNFSM4YY6IJHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
If you could send me a sample of your sensors that could be useful.
Thanks
TF
… On 13 Feb 2022, at 20:23, cliffdude ***@***.***> wrote:
It is normal to not get all the data on each mqtt packet. Mine does the
same thing, now it is a home assistissue with h9w you setup your
sensors. I can send you some of my yaml code if you wish.
A domingo, 13/02/2022, 17:40, Freitag83 ***@***.***> escreveu:
> Yay.
> More progress today.
> The RS485 board must have been faulty, swapped it out and it now connects
> and transfers data back and forth.
> I've set up the sensors but they are working intermittently. When i check
> the MQTT and listen for # I am not getting all the data each ping. This is
> causing my sensors to read 0 most of the time.
>
> Listen to a topic
>
> Listening to
>
> Message 343 received on Sofar2mqtt/state at 5:35 PM:
> {
> "battery_current": 64242,
> "grid_power": 0,
> "consumption": 55
> }
> QoS: 0 - Retain: false
> Message 342 received on Sofar2mqtt/state at 5:35 PM:
> {
> "battery_voltage": 4810,
> "inverter_temp": 31,
> "inverterHS_temp": 20,
> "solarPVAmps": 45
>
> —
> Reply to this email directly, view it on GitHub
> <#3 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AOGAXEBSDEXA5BVD54DTXBLU27UJLANCNFSM4YY6IJHA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Been working like a dream for the past few weeks 👍 Just to try and get nodered working now 😬 |
Beta Was this translation helpful? Give feedback.
-
Hello to all, in order to visualize correctly the data from Sofar2mqtt I use this code (based on zambujal's one) with no other measurament like envoy. in configuration.yaml: in sensors.yaml:
In sofar.yaml:
|
Beta Was this translation helpful? Give feedback.
-
Very complete setup, thanks for sharing it will surely help many
A sexta, 26/08/2022, 17:22, terafilgit ***@***.***> escreveu:
… Hello to all, in order to visualize correctly the data from Sofar2mqtt I
use this code (based on zambujal's one) with no other measurament like
envoy.
I hope can be useful for someone:
*in configuration.yaml:*
sensor: !include sensors.yaml
sensor sofar: !include sofar.yaml
*in sensors.yaml:*
-
platform: integration
name: Energy from battery
source: sensor.from_inverter_battery_power
unit_time: h
method: left
-
platform: integration
name: Energy to battery
source: sensor.to_inverter_battery_power
unit_time: h
method: left
-
platform: integration
name: Grid Export Energy
source: sensor.to_grid_power
unit_time: h
method: left
-
platform: integration
name: Grid Import Energy
source: sensor.from_grid_power
unit_time: h
method: left
-
platform: integration
name: Solar Production
source: sensor.solar_total_power
unit_time: h
method: left
-
platform: integration
name: Home consumption_i
source: sensor.home_consumption
unit_time: h
method: left
*In sofar.yaml:*
-
platform: mqtt
name: "running_state"
state_topic: "Sofar2mqtt/state"
value_template: "{{ value_json.running_state }}"
-
platform: mqtt
name: "grid_voltage"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "V"
device_class: voltage
value_template: "{{ value_json.grid_voltage / 10 }}"
-
platform: mqtt
name: "grid_current"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "mA"
device_class: current
value_template: >
{% if (value_json.grid_current < 32768) %}
{{ value_json.grid_current * 10 }}
{% else %}
{{ (65535 - value_json.grid_current) * 10 }}
{% endif %}
-
platform: mqtt
name: "to_grid_power"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kW"
device_class: power
value_template: >
{% if (value_json.grid_power < 32768) %}
{{ value_json.grid_power / 100 }}
{% else %}
{{ 0 }}
{% endif %}
-
platform: mqtt
name: "from_grid_power"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kW"
device_class: power
value_template: >
{% if (value_json.grid_power < 32768) %}
{{ 0 }}
{% else %}
{{ (65535 - value_json.grid_power) / 100 }}
{% endif %}
-
platform: mqtt
name: "grid_freq"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "Hz"
device_class: frequency
value_template: "{{ value_json.grid_freq / 100 }}"
-
platform: mqtt
name: "inverter_battery_voltage"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "V"
device_class: voltage
value_template: "{{ value_json.battery_voltage / 10 }}"
-
platform: mqtt
name: "inverter_battery_current"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "mA"
device_class: current
value_template: >
{% if (value_json.battery_current < 32768) %}
{{ value_json.battery_current * 10 }}
{% else %}
{{ (65535 - value_json.battery_current) * 10 }}
{% endif %}
-
platform: mqtt
name: "to_inverter_battery_power"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kW"
device_class: power
value_template: >
{% if (value_json.battery_power < 32768) %}
{{ value_json.battery_power / 100 }}
{% else %}
{{ 0 }}
{% endif %}
-
platform: mqtt
name: "from_inverter_battery_power"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kW"
device_class: power
value_template: >
{% if (value_json.battery_power < 32768) %}
{{ 0 }}
{% else %}
{{ (65535 - value_json.battery_power) / 100 }}
{% endif %}
-
platform: mqtt
name: "inverter_battery_SOC"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value_json.batterySOC }}"
-
platform: mqtt
name: "inverter_battery_temp"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "°C"
device_class: temperature
value_template: "{{ value_json.battery_temp }}"
-
platform: mqtt
name: "inverter_battery_cycles"
state_topic: "Sofar2mqtt/state"
value_template: "{{ value_json.battery_cycles }}"
-
platform: mqtt
name: "home_consumption"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kW"
device_class: power
value_template: "{{ value_json.consumption / 100 }}"
-
platform: mqtt
name: "solar_string1_power"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kW"
device_class: power
value_template: "{{ value_json.solar_string1_power / 100 }}"
-
platform: mqtt
name: "solar_string2_power"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kW"
device_class: power
value_template: "{{ value_json.solar_string2_power / 100 }}"
-
platform: mqtt
name: "solar_total_power"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kW"
device_class: power
value_template: "{{ value_json.solar_total_power / 100 }}"
-
platform: mqtt
name: "today_generation"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kWh"
device_class: power
value_template: "{{ value_json.today_generation / 100 }}"
-
platform: mqtt
name: "today_consumption"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kWh"
device_class: power
value_template: "{{ value_json.today_consumption / 100 }}"
-
platform: mqtt
name: "today_exported"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kWh"
device_class: power
value_template: "{{ value_json.today_exported / 100 }}"
-
platform: mqtt
name: "today_purchase"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "kWh"
device_class: power
value_template: "{{ value_json.today_purchase / 100 }}"
-
platform: mqtt
name: "inverter_temp"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "°C"
device_class: temperature
value_template: "{{ value_json.inverter_temp }}"
-
platform: mqtt
name: "inverterHS_temp"
state_topic: "Sofar2mqtt/state"
unit_of_measurement: "°C"
device_class: temperature
value_template: "{{ value_json.inverterHS_temp }}"
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOGAXEFKIQW5IO3UXZ34OFDV3DVN7ANCNFSM4YY6IJHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
in case if getting toshiba tv black screen then you can simply factory reset it this will help. |
Beta Was this translation helpful? Give feedback.
-
Hi
Many thanks for this set up all appears to be nearly working very well for me.
I have a Nodemcu and a RS485 board connected as per your diagram but without the OLED.
I have mqtt running on Home Assistant and it is receiving from the the ME3000 however some of the figures dont look quite right in particular the Solar_PV figure seems to be adrift by a factor of 10. So when I'm producing 500watts on the PV the Mqtt is receiving a figure of 50.
Maybe i have done something wrong...
This is the information i receive in HA - below the solar PV says 55 when i was producing 554 watts . The display on the ME3000 reads correctly .
{
"running_state": 0,
"grid_voltage": 2401,
"grid_current": 5,
"grid_freq": 5001,
"battery_power": 0,
"battery_voltage": 4840,
"battery_current": 65517,
"batterySOC": 20,
"battery_temp": 10,
"battery_cycles": 484,
"grid_power": 2,
"consumption": 50,
"solarPV": 55,
"today_generation": 36,
"today_exported": 0,
"today_purchase": 347,
"today_consumption": 401,
"inverter_temp": 20,
"inverterHS_temp": 7,
"solarPVAmps": 239
}
Beta Was this translation helpful? Give feedback.
All reactions