npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

homebridge-growatt-inversor

v1.2.15

Published

Plugin Homebridge para monitorar inversores solares Growatt no Apple HomeKit

Downloads

220

Readme

Homebridge Growatt Inversor

Plugin para Homebridge que conecta seus inversores solares Growatt ao Apple HomeKit, permitindo monitorar dados de energia diretamente no app Casa.

🌟 Características

  • 🔍 Descoberta automática - Encontra todos os inversores da sua conta automaticamente
  • 📊 Múltiplos inversores - Suporta quantos inversores você tiver
  • 🏠 Integração HomeKit - Cada inversor aparece como um acessório separado
  • ⏰ Atualização em tempo real - Dados atualizados automaticamente
  • 🌍 Interface em português - Configuração e logs em português

📱 Como aparece no app Casa

Cada inversor aparece como um botão grande no app Casa com:

🔘 Botão Principal (Medidor de Energia)

  • Nome do inversor como título do botão
  • Estado: 🟢 Verde (produzindo) ou ⚫ Cinza (offline)
  • Ao tocar: Abre detalhes com todas as informações

📊 Detalhes no botão (características de energia):

  • Potência Atual: Watts sendo gerados agora
  • Energia Hoje: kWh produzidos no dia (valor principal)
  • Voltagem: 220V (simulado)
  • Status: Se está em uso (produzindo energia)

📱 Sensores Extras:

  • Energia Total - Total acumulado em kWh
  • Status Detalhado - Sensor de contato para automações

🚀 Instalação

Via Homebridge Config UI X (Recomendado)

  1. Abra a interface web do Homebridge
  2. Vá em PluginsBuscar
  3. Procure por homebridge-growatt-inversor
  4. Clique em Instalar

Via NPM

npm install -g homebridge-growatt-inversor

⚙️ Configuração

1. Obter Token da API Growatt

  1. Acesse: https://openapi.growatt.com
  2. Faça login com suas credenciais Growatt
  3. Vá em API Token
  4. Gere/copie seu token de acesso

2. Configurar no Homebridge

Via Interface Web:

  1. Vá em PluginsHomebridge Growatt InversorConfigurações
  2. Preencha apenas o Token da API
  3. Salve e reinicie o Homebridge

Via config.json manual:

{
  "platforms": [
    {
      "name": "Growatt Solar",
      "token": "seu_token_aqui",
      "refreshInterval": 5,
      "platform": "GrowattInversor"
    }
  ]
}

📋 Parâmetros de Configuração

| Parâmetro | Obrigatório | Padrão | Descrição | |-----------|-------------|---------|-----------| | name | ✅ | "Growatt Solar" | Nome da plataforma nos logs | | token | ✅ | - | Token da API Growatt | | refreshInterval | ❌ | 5 | Intervalo de atualização (minutos) |

🔧 Como funciona

  1. Descoberta: O plugin usa seu token para buscar todos os inversores da conta via /plant/list
  2. Criação: Cada inversor encontrado vira um acessório HomeKit separado
  3. Monitoramento: Cada inversor é atualizado independentemente via /plant/data

📊 Exemplo de uso no HomeKit

No app Casa você verá:

Tela Principal:

  • Botão grande "jfcardososantos" (nome do seu inversor)
  • Status: 🟢 Ligado (se produzindo) ou ⚫ Desligado (se offline)

Ao tocar no botão:

  • Potência: 1500W (potência atual)
  • Energia: 25.5 kWh (energia gerada hoje)
  • Voltagem: 220V
  • Em uso: Sim (se produzindo energia)

Sensores extras:

  • "Energia Total": 2847.3 kWh (total acumulado)
  • "Status Detalhado": Para automações

🤖 Automações possíveis:

  • Notificação quando produção passa de X kWh no dia
  • Alerta quando inversor fica offline por muito tempo
  • Comparar produção entre diferentes inversores
  • Logs de produção diária/mensal

🐛 Resolução de Problemas

Plugin não encontra inversores

  • Verifique se o token está correto
  • Confirme que sua conta Growatt tem inversores cadastrados
  • Verifique os logs do Homebridge para erros de API

Dados não atualizam

  • Verifique sua conexão com a internet
  • Confirme se a API da Growatt está funcionando
  • Tente diminuir o refreshInterval

Logs para debug

Ative logs de debug no Homebridge para ver detalhes:

homebridge -D

📝 Logs importantes

O plugin gera logs informativos:

  • 🔍 Buscando inversores na conta...
  • 📊 Encontrados X inversor(es)
  • ✅ Nome do Inversor: 1500W, Hoje: 25.5kWh, Total: 2847.3kWh, Online

🤝 Contribuição

Encontrou um bug ou tem uma sugestão? Abra uma issue no GitHub!

📄 Licença

MIT License - veja o arquivo LICENSE para detalhes.

🙏 Agradecimentos

  • Homebridge - Plataforma incrível
  • Growatt - API para desenvolvedores
  • Comunidade Homebridge - Suporte e feedback

⚠️ Nota: Este plugin não é oficial da Growatt. Use por sua conta e risco.