Open RazorCopter opened 6 years ago
Hi, RazorCopter
I think this line is not correct:
`json_body={"Time":actual_time,"ENERGY":{"Temp":(msg.temperature),"H_Total":(msg.h_total),"E_Today":(msg.e_today),"E_Total":(msg.e_total),"VPV1":(msg.v_pv(1)),"$`
it ends with a $ but i guess it needs to be:
json_body={"Time":actual_time,"ENERGY":{"Temp":(msg.temperature),"H_Total":(msg.h_total),"E_Today":(msg.e_today),"E_Total":(msg.e_total),"VPV1":(msg.v_pv(1))}}
THis worked for me. But is it also possible to have E-Instant / Real-time information?
sorry, copy / paste error! :) https://pastebin.com/qD51X299 It is not possible to have data in real time because it is not possible to interrogate the inverter but only to listen.
NOTE
Sending attributes with mqtt paho client for integration with HomeAssistant Need Paho Client - >
pip install paho-mqtt
Create new file MQTTOutput.py to /user/Omnik-Data-Logger/outputsnano /xxxxxxxx/Omnik-Data-Logger/outputs/MQTTOutput.py
Edit config.cfg ->enabled_plugins = MQTTOutput
###################### Create new sensor Home Assistant: