Search found 10 matches

by StephenR
Monday 16 January 2023 22:41
Forum: MQTT Auto Discovery
Topic: Autodiscovery with TheengsGateway
Replies: 39
Views: 3507

Re: Autodiscovery with TheengsGateway

Thanks Doler. That is good news! I think OpenMQTTGateway is basically identical to Theengs Gateway (other than target platform) and Theengs has an option to filter out messages: -Df DISCOVERY_FILTER [DISCOVERY_FILTER ...], --discovery_filter DISCOVERY_FILTER [DISCOVERY_FILTER ...] Device discovery ...
by StephenR
Monday 16 January 2023 13:37
Forum: MQTT Auto Discovery
Topic: Autodiscovery with TheengsGateway
Replies: 39
Views: 3507

Re: Autodiscovery with TheengsGateway

Thanks waltervl! I have resubmitted the PR on the development branch so hope it is better this time! @Doler If you would were able to test, that would be superb! It is now on the dev branch so much easier. Just need to do a normal build but using https://github.com/StephenR1/domoticz.git as the ...
by StephenR
Monday 16 January 2023 10:31
Forum: MQTT Auto Discovery
Topic: Autodiscovery with TheengsGateway
Replies: 39
Views: 3507

Re: Autodiscovery with TheengsGateway

Am still learning this!

If I should move changes to dev branch and re-trigger the pull request, please do say!
by StephenR
Monday 16 January 2023 10:30
Forum: MQTT Auto Discovery
Topic: Autodiscovery with TheengsGateway
Replies: 39
Views: 3507

Re: Autodiscovery with TheengsGateway

Hi waltervl, I was surprised (and probably got it wrong) but the notes on how to contribute code in the github repository say : Please base your bug fixes against the master branch. The master branch is considered the stable and is used for our releases. (from https://github.com/domoticz/domoticz ...
by StephenR
Monday 16 January 2023 10:20
Forum: MQTT Auto Discovery
Topic: Autodiscovery with TheengsGateway
Replies: 39
Views: 3507

Re: Autodiscovery with TheengsGateway

Hi, I have got a proposed fix. I will try to trigger a 'pull request' but this is the first time I have submitted a patch anywhere so I am very much on a learning curve! If anyone wants to test it out before it is available in the main tree (if accepted), you should be able to build it from source ...
by StephenR
Saturday 14 January 2023 17:57
Forum: MQTT Auto Discovery
Topic: Autodiscovery with TheengsGateway
Replies: 39
Views: 3507

Re: Autodiscovery with TheengsGateway

I wrote a fix this morning which I am testing out. It seems to be working ok at the moment. Assuming it looks good, I will read up on how to submit the change as a potential update to the system. It isn't too lovely a fix because I wanted to keep the changes to a minimum and the system currently ...
by StephenR
Tuesday 10 January 2023 19:15
Forum: MQTT Auto Discovery
Topic: Autodiscovery with TheengsGateway
Replies: 39
Views: 3507

Re: Autodiscovery with TheengsGateway

It is the wild cards. I have put in a horrible hack which replaces any message topic which starts with home/TheengsGateway/ with +/+/ (so it matches the template) and everything starts to work. Obviously the right way to do this is to go the other way and to change the compare code with a wildcard ...
by StephenR
Tuesday 10 January 2023 10:53
Forum: MQTT Auto Discovery
Topic: Autodiscovery with TheengsGateway
Replies: 39
Views: 3507

Re: Autodiscovery with TheengsGateway

Looking at the source code for autodiscovery, I am a bit more worried about the use of the wild cards in the status topic. Caveat : This is the first time I have used MQTT and the first time I have looked at Domoticz source code so I am not so confident but : in MQTTAutoDiscover::handle_auto ...
by StephenR
Tuesday 10 January 2023 8:43
Forum: MQTT Auto Discovery
Topic: Autodiscovery with TheengsGateway
Replies: 39
Views: 3507

Re: Autodiscovery with TheengsGateway

Thanks very much walter. I have got hass-discovery turned on (I think) by leaving it to its default. Were you suggesting that I should not? Will give that a go. It seems to be creating the nodes in MQTT (but I don't 100% know what they should look like) I added an attachment with a screenshot but ...
by StephenR
Monday 09 January 2023 21:19
Forum: MQTT Auto Discovery
Topic: Autodiscovery with TheengsGateway
Replies: 39
Views: 3507

Autodiscovery with TheengsGateway

Hi, I am trying to setup MQTT autodiscovery to find sensors which are created by a TheengsGateway. All looks like it works on the surface and I see entries like this in my log : 2023-01-08 19:05:54 .224 Status: BBS2_MQTT: discovered: ATC_2C87D4/LYWSD03MMC_PVVX-tempc (unique_id: A4C1382C87D4-tempc ...