July 27, 20214 yr Hi Guys, Does anyone have a how-2 to setup MQTT on the new SMH? I don't want to do cloud integration for home assistant, as my fiber connection ISP is problematic. I was told to do it from the website, but for the life of me I can not find it op the local hosted website or the Emoncms website. Any pointers will be appreciated. Regard, Johan
July 28, 20214 yr Author So I just went back to ICC, as that did exactly what I needed, Click on settings, then setup MQTT. Extremely glad I did a SD-Card clone before the install. No need to go out to the internet and battle to keep traffic local to the site. My Home assistant is far to involved to redo everything due to MQTT now sitting somewhere in the cloud and not local.
January 22, 20242 yr leaving this here in case someone else stumbles onto it is it the right way probably not , just what i had to do to get it working to have the stats so i can use it in automations their advice was connect to the node red implementation running on the pi ie X.X.X.X:1880 from a different pc or from the smh pi itself localhost:1880/127.0.0.1:1880 then follow the how to configure directions # How to configiure: 1. Doubleclick the Output to Home Assistant Icon (Node). 2. Edit the properties of the MQTT server (click the pen icon). 3. Enter the IP address for your home assistant server. 4. Click on the security tab and enter your username and password for Home Assistant 5. Click Update once done, and then Done. 6. Click the Deploy Icon (top right of the screen) to enable SMH to start posting to Home Assistnat 7. DONE! if it works for you great this did not work for me , well it did, it connected but home assistant did not auto discover anything when i connected with mqtt explorer , i could see the birth message i told it to send nothing else so then i just used the pi's mqtt broker since i noticed it has an mqtt broker running so i configured thome assistant to point to the ip address of the SMH pi and then i looked at the topics i found while connected with mqtt explorer and just configured the sensors manually in home assistant by popping this into the configuration.yaml of my home assistant the name you can call whatever works easier for you, having the inverter in the front just had them all grouped together in the list of sensors naturally just check the config files before restarting home assistant that some or other error does not make it non bootable i just added all i found might trim down if i find some don't work or aren't used this isn't all the telemetry of the inverter this is telemetry from SMH which get them from inverter hence some of the items you could see via the likes of solar assistant is missing as it creates a mqtt broker that forwards every single item and makes it easy to change the settings of inverter too have not progressed to the point that i can change anything via mqtt/home assistant, total noob when it comes to home assistant and mqtt i assume cluster will have multiple entries if you have more than one inverter i have 1 axpert so no idea what it will look like if multiple , and then inverter values will show total while the cluster topic will show individual stats may then have to edit the yaml with whatever you need i just added all except the ones that would essentially be duplicates stats mqtt: sensor: # invertervalues - name: "Inverter_Load_percentage" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.load_percentage }}" - name: "Inverter_Load_Watts" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.load_watts }}" - name: "Inverter_PV_watts" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.pv_watts }}" - name: "Inverter_Mode" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.mode }}" - name: "Inverter_Grid_on" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.grid_on }}" - name: "Inverter_Grid_watts" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.grid_watts }}" - name: "Inverter_Grid_frequency" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.grid_frequency }}" - name: "Inverter_Grid_voltage" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.grid_voltage }}" - name: "Inverter_Grid_amps" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.grid_amps }}" - name: "Inverter_Volts" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.inverter_volts }}" - name: "Inverter_Amps" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.inverter_amps }}" - name: "Inverter_Frequency" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.inverter_frequency }}" - name: "Inverter_Temp" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.inverter_temp }}" - name: "Inverter_total_load_watts" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.inverter_total_load_watts }}" - name: "Inverter_pv_kwh_produced" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.pv_kwh_produced }}" - name: "Inverter_efficiency" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.efficiency }}" - name: "Inverter_Total_kwh_used" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.total_kwh_used }}" - name: "Inverter_avg_pv_volts" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.avg_pv_volts }}" - name: "Inverter_avg_pv_amps" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.avg_pv_amps }}" - name: "Inverter_max_load_day" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.max_load_day }}" - name: "Inverter_max_load_hour" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.max_load_hour }}" - name: "Inverter_max_pv_day" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.max_pv_day }}" - name: "Inverter_max_pv_hour" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.max_pv_hour }}" - name: "Inverter_grid_kwh_used" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.grid_kwh_used }}" - name: "Inverter_grid_kwh_import" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.grid_kwh_import }}" - name: "Inverter_grid_kwh_export" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.grid_kwh_export }}" - name: "Inverter_solar_battery_watts" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.solar_battery_watts }}" - name: "Inverter_solar_battery_kwh_used" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.solar_battery_kwh_used }}" - name: "Inverter_fault_msg" state_topic: "Open/Inverter/InverterValues" value_template: "{{ value_json.fault_msg }}" # Cluster - name: "Inverter_pv_volts" state_topic: "Open/Inverter/Cluster" value_template: "{{ value_json.pv_volts }}" - name: "Inverter_pv_amps" state_topic: "Open/Inverter/Cluster" value_template: "{{ value_json.pv_amps }}" - name: "Inverter_serial_no" state_topic: "Open/Inverter/Cluster" value_template: "{{ value_json.serial_no }}" - name: "Inverter_firmware" state_topic: "Open/Inverter/Cluster" value_template: "{{ value_json.firmware }}" # battery - name: "Battery_Capacity" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.stack_ah }}" - name: "Battery_soc" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.soc }}" - name: "Battery_Time_to_5" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.tt0 }}" - name: "Battery_Time_to_full" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.tt100 }}" - name: "Battery_batterywatts" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.batterywatts }}" - name: "Battery_batteryvolts" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.batteryvolts }}" - name: "Battery_batteryamps" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.batteryamps }}" - name: "Battery_batteryamps_used" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.batteryamps_used }}" - name: "Battery_battery_mid_point" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.battery_mid_point }}" - name: "Battery_max_charge_day" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.max_charge_day }}" - name: "Battery_max_discharge_day" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.max_discharge_day }}" - name: "Battery_daily_charge_kwh" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.daily_charge_kwh }}" - name: "Battery_daily_discharge_kwh" state_topic: "Open/Battery/StackTotals" value_template: "{{ value_json.daily_discharge_kwh }}" Edited January 23, 20242 yr by Leondavibe spelling
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.