fdebrus / NeopoolHomeAssistant

5 stars 1 forks source link

Error in configuration.yaml on line 95? + creating MQTT items? #2

Closed JHurk closed 1 year ago

JHurk commented 1 year ago

I tried to install the dashboard, but am running into some trouble. After finally getting the Tasmota Neopool setup to work (faulty Tail485), I tried to follow your 'guide' to get the dashboard to work. Filled the MQTT details like you said in the Read.me (of course own IP en credentials).

After that I created 9 automations, the ones in the file helper_automations.

Schermafbeelding 2023-10-18 om 15 17 52

After that I downloaded the configuration.yaml file and renamed it smartpool.yaml I uploaded this file to /config/packages/ (I have the same for my watermeter and clack). I got an error when trying to save the file: bad indentation of a mapping entry (95:3)

Is there some way to correct this error? I tried searching and comparing to my other yaml (watermeter and clack) and thought the solution would be to add 'sensor:' on line 94, which solved the error but resulted in a not working dashboard later on (I guess). Schermafbeelding 2023-10-18 om 15 24 28

After restarting HA (with above correction in line 94) I added the dashboard, which resulted in:

Schermafbeelding 2023-10-18 om 15 26 25

Besides the error in the yaml, I am having trouble with the fact that only 4 MQTT entities are created. In the description you said that I need to create MQTT items but I am not sure how to do that, and thought they would be created automatically (because MQTT discovery is enabled). Could you please explain how I need to create these entities? And if the correction I made in line 94 is correct or caused the rest of the issues :)

Extra info about the options I have enabled/connected in my Sugar Valley:

JHurk commented 1 year ago

Tried to do some debugging as to why I don't get any values or response.

The first step is the automation: SmartPool_Sensors_Updated --> This works SmartPool_Sensors_Updated triggers the following commands: cmnd/SmartPool/NPFiltrationmode cmnd/SmartPool/NPFiltration cmnd/SmartPool/NPLight cmnd/SmartPool/NPHydrolysis cmnd/SmartPool/NPpHMax cmnd/SmartPool/NPpHMin cmnd/SmartPool/NPRedox

These commands arrive successful at the NeoPool and NeoPool gives a result (the values):

Scherm­afbeelding 2023-10-18 om 19 29 53

It seems to me that this response/answer doesn't come to Home Assistant. Because the other automations never get triggered:

Scherm­afbeelding 2023-10-18 om 19 32 34

(the one from 41 minutes ago was a manual trigger by me, which resulted in an error)

Is there something I need to change in the settings of HA or NeoPool to get this working?

JHurk commented 1 year ago

Did some more debugging; it seemed that the SetOption19 (Tasmota Discovery protocol) was Off, en therefor not making any new devices. After I put SetOption19 On the entities were created and some of the dashboard started working. Will do some testing today and tomorrow, if all is solved I will close this issue.

JHurk commented 1 year ago

Seems to me everything is working now, I added a unique_id to the sensors in the smart pool.yaml so I could hide them on my main dashboard. Like I said, not all components are installed (like temp sensor) so need to tweak the dashboard a little bit. But looking good, thanks!

And the issue was indeed enabling SetOption 19 On (via Console in the Tasmota Neopool).