Homewizard Plug-in Battery
+ Node-Red + Domoticz




Domoticz

  • Maak 3 dummy devices aan in Domoticz




Homewizard Plug-in Battery

  • Hier een paar stappen om verbinding te maken met de batterij
    Homewizard documentatie is hier te vinden.

  • Maak een gebruiker aan om een Bearer token te krijgen.
    Druk op het knopje van de batterij en binnen 30 seconden voer dit onderstaande curl commando uit.

    curl https://ipadresvanbatterij/api/user --insecure -X POST -H "Content-Type: application/json" -H "X-Api-Version: 2" -d "{\"name\": \"local/mannema\"}" 

  • output van de curl:
    {
    "name":"local/mannema",
    "token":"3F153NOGWATFICTIEF326F18E190"
    }                

  • Maak verbinding om de data uit te lezen met deze test:
     curl https://ipadresvanbatterij/api/measurement --insecure -H "Authorization: Bearer 3F153NOGWATFICTIEF326F18E190"  -H "X-Api-Version: 2"  

    Output:
    {
      "energy_import_kwh":3.352,
      "energy_export_kwh":2.345,
      "power_w":-465.665,
      "voltage_v":233.594,
      "current_a":2.03,
      "frequency_hz":49.994,
      "state_of_charge_pct":20,
      "cycles":0
    }				



Node-Red




Stap voor stap binnen de flow:


  • Websocket out







  • authorization (5 sec)




  • subscribe (10 sec)




  • Websocket out







  • json





  • BatterijPercentage_Domoticz





  • Batterij_Import_Domoticz





  • Batterij_Export_Domoticz





  • updateDomoticzSensor





  • Zichtbaar in Domoticz