LordMike / MBW.BlueRiiot2MQTT

Utility to map between Blue Riiots pool API, and Home Assistant MQTT
49 stars 2 forks source link

Add command to force poll/sync #16

Closed LordMike closed 4 years ago

LordMike commented 4 years ago

Following #11 - add an MQTT command to force a poll.

ggggh commented 4 years ago

Haven't been able to get this one working - seems command is not received in app (using latest docker image).
Will any message do? what prefix is taken, is it the HASS__BlueRiiotPrefix ? The verbose log doesn´t seem to show it subscribing to any topic

LordMike commented 4 years ago

Oh, I also changed the config. Damn.. Will need to note that.

With default settings, it should be blueriiot/commands/force_sync. The logs should indicate that a force sync was started.

Here is a screenshot of the logs after I push (any) message to that topic.

image

LordMike commented 4 years ago

@ggggh sorry about that. I've updated the readme for the new config:

https://github.com/LordMike/MBW.BlueRiiot2MQTT#environment-variables

ggggh commented 4 years ago

No problem! Had tried with that one, and also tried again with and without setting HASS__TopicPrefix, but can't get a response on the application log, even in verbose. Sending my message to: blueriiot/commands/force_sync

LordMike commented 4 years ago

And you're running the latest or dev tags?

LordMike commented 4 years ago

In verbose logging, you should also see a message from MqttCommandService indicating that it's Subscribing to ... topics..

ggggh commented 4 years ago

tried both latest and dev; can't see a message for "Subscribing" on the container logs, or from the MqttCommandService

LordMike commented 4 years ago

That's odd.. Uhm. What's your image id?

docker image ls lordmike/blueriiot2mqtt:latest

Should be d3f36d68f052

Else I'll have to add more debug logs to the commands to see what's up.

ggggh commented 4 years ago

Apologies - seems it was some issue on mi docker compose caching an old image. Image id still isn't the same as yours, but the force synch is working great now anyway :)

LordMike commented 4 years ago

Oh thank god. Yea, the dev moved as I pushed the readme change.

But great stuff... :)