Anrolosia / Shopping-List-with-Grocy

A Shopping list integration with Grocy for Home Assistant
MIT License
41 stars 1 forks source link

binary_sensor.updating_shopping_list_with_grocy is not created #33

Closed golonac closed 1 year ago

golonac commented 1 year ago

Hi! I installed the integration, but binary_sensor.updating_shopping_list_with_grocy that is mentioned in the docs and used by the sample card wasn't created. Other sensors like sensor.products_shopping_list_with_grocy were. Tried enabling debug logging for the integration, but logs show nothing.

Anrolosia commented 1 year ago

Hi @iikkamerilainen , have you tried to reboot HomeAssistant maybe? It should be created as the other sensors. Thanks

golonac commented 1 year ago

Yep I did try restarting, no effect.

Anrolosia commented 1 year ago

Could you try to call the service shopping_list_with_grocy.refresh_products please? It should be created at the first call. Thanks

golonac commented 1 year ago

I called that service using the Developer Tools -> Services with empty data, but binary_sensor.updating_shopping_list_with_grocy did not appear.

Anrolosia commented 1 year ago

that is so strange... It's automaticaly created by MQTT integration. Do you have correct integration with MQTT? Do you see your products?

1sthandy commented 1 year ago

Hi, i have the same error. New System with Grocy on same host.

Home Assistant 2023.10.5 Supervisor 2023.10.1 Operating System 11.1 Frontend 20231005.0 - latest

Edit: This is the trick: https://github.com/Anrolosia/Shopping-List-with-Grocy/issues/29#issuecomment-1782905325

Anrolosia commented 1 year ago

@1sthandy yup, this is why I asked about the integration with MQTT, if it was correctly installed and configured.

So I guess fixing your MQTT integration fixed your issue with that module?

@iikkamerilainen could you check on your side also please?

Thanks

golonac commented 1 year ago

Yep that was it! Had a bad MQTT config, fixing it created the entity. Should probably log an error message. Thanks for the help!

Anrolosia commented 1 year ago

Awesome! I'll close the ticket then I think I will update the documentation to include that :) Thank you