cmcgerty / Sofar2mqtt

A smart home interface for Sofar solar and battery inverters.
GNU General Public License v3.0
79 stars 45 forks source link

node red flow does not work #40

Closed Ernest-burgess closed 1 year ago

Ernest-burgess commented 1 year ago

hi the node red flow funtion node does not seem to act on any of the payload values i have a debug node on what goes in and one on the output and they both show the same data it does not seem to be formating the data.
ie the running state shows as value 4 in the input and still as value 4 in the output the globle variable holds the string "Unknown" so it seems to be droping right through the case statment . i have tried the funtion node that was uploaded a few days ago with revision 2 of the code but this still does the same does any one have this working ? regards bill

cmcgerty commented 1 year ago

Hi Bill,

The function works fine. Sorry if you are struggling to get it working in your system, I know it can be a pain. Could you ask your question in the discussion area?

Format
Ernest-burgess commented 1 year ago

Hi thanks for the prompt reply That was what I was expecting to see sorry I am new to this this is a picture of what I am getting I wonder if it could be something in the set up of node red ? [cid:42225D64-80A4-4570-B874-E72D880D1839]

Regards. Bill

On 10 Nov 2022, at 09:05, cmcg @.***> wrote:



Hi Bill,

The function works fine. Sorry if you are struggling to get it working in your system, I know it can be a pain. Could you ask your question in the discussion area?

[Format]https://user-images.githubusercontent.com/13269549/201046975-acdda849-5bef-4186-81d8-cb960e3586d9.png

— Reply to this email directly, view it on GitHubhttps://github.com/cmcgerty/Sofar2mqtt/issues/40#issuecomment-1309974743, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALRW66F6C6RJO6JXI6SLDKTWHS3D3ANCNFSM6AAAAAAR4JEQ6U. You are receiving this because you authored the thread.Message ID: @.***>

davies8172 commented 1 year ago

Check out this file to get you started. It is the original Sofar2MQTT flow for Node Red which works perfectly. It outputs to MQTT but you can change that to where-ever you like. :) https://www.facebook.com/groups/2477195449252168/permalink/2570410946597284

Ernest-burgess commented 1 year ago

Fixed it. Spent all last night on this. And your msg. Just made me think about the output from the Mqtt conection node. Set it to a parsed JSON object. Now works fine

Thanks

Regards. Bill

On 10 Nov 2022, at 09:05, cmcg @.***> wrote:



Hi Bill,

The function works fine. Sorry if you are struggling to get it working in your system, I know it can be a pain. Could you ask your question in the discussion area?

[Format]https://user-images.githubusercontent.com/13269549/201046975-acdda849-5bef-4186-81d8-cb960e3586d9.png

— Reply to this email directly, view it on GitHubhttps://github.com/cmcgerty/Sofar2mqtt/issues/40#issuecomment-1309974743, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALRW66F6C6RJO6JXI6SLDKTWHS3D3ANCNFSM6AAAAAAR4JEQ6U. You are receiving this because you authored the thread.Message ID: @.***>