Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modbus Keyword Count removal #29

Open
BrunoN17 opened this issue Oct 5, 2023 · 3 comments
Open

Modbus Keyword Count removal #29

BrunoN17 opened this issue Oct 5, 2023 · 3 comments

Comments

@BrunoN17
Copy link

BrunoN17 commented Oct 5, 2023

Olá @tiagofreire-pt

Vejo que o count a partir da versão 2023.10 só está disponivel para os data_type: custom e data_type: string, o que faz com que quem faça este update fique com a impossibilidade de usar o ModBus.

https://www.home-assistant.io/integrations/modbus/#count

Conforme sugerido aqui: home-assistant/core#101421 comentei o "count" para todos os data types, excepto para o custom e string. Agora o ModBus está devolta ao funcionamento, no entanto alguns counters deixaram de funcionar, apresentando o seguinte:

image

Configuração de um dos counters:

- name: "ERedes Box Import L1" # 16
  slave: 01
  address: 28
  input_type: input
  #count: 1
  data_type: uint32
  precision: 3
  scale: 0.001
  unit_of_measurement: kWh
  device_class: energy
  scan_interval: 60
@BrixSat
Copy link

BrixSat commented Oct 8, 2023

Solução?

@BrunoN17
Copy link
Author

BrunoN17 commented Oct 9, 2023

Olá @BrixSat

Sim, vê o seguinte post:
https://forum.cpha.pt/t/integrar-contadores-inteligentes-da-edp-em-home-assistant/4953/1044?page=24

No fundo foi executar um script do nikito7 que cria um custom component para o modbus, depois é substituir as data_type: uint32 para custom e adicionar a structure: “>L”

@BrixSat
Copy link

BrixSat commented Oct 9, 2023

OBrigado vou testar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants