philipparndt/mqtt-analyzer

Can't get publish JSON messages with form working

Opened this issue · 6 comments

From the screenshot titled 'Publish JSON messages with form' I suppose that it should be possible to attach a topic and a message to a form to puplish through simply pressing a button or sliding a switch. However I yet wasn't able to get this function working. Am I missing something or is this function not activated in the actual version 1.6.1 ?

Edit: After reading all of Issue #55 I got it working with 'Publish new message' from an old message but after publishing this command always disappears and must be created again. I would like to have some commands permanently attached to the publish page with the possibility to label such commands with a user friendly name.

Hi @RoSchmi thanks for the feedback. Can you have a look at the message-templates branch? There is currently only a draft implemented. But maybe we could do something like this in the publish message dialog as well.

image

With this functionality I have the following plan:

  • publish multiple messages at once
  • make named templates for publishing messages
  • make them available for siri shortcuts
  • be able to pin messages or values from json messages to ask siri for values (will probably only work for retained messages due to the app background restriction)

Currently I'm struggling with the amount of space that will be consumed for a lot of templates vs. fast accessibility of them.

But maybe we could do something like this in the publish message dialog as well.

Yes, that would be a good solution, perhaps with a kind of DialogBox inserted to confirm publishing of the message.
Displaying immediately the result the command like the achieved On/Off state of the actor on the form would be the 'Sahnehäubchen'

Currently I'm struggling with the amount of space that will be consumed for a lot of templates vs. fast accessibility of them.

Yes, indeed a problem. Perhaps limiting the number and kicking off the one which was not used for a longer time when adding a new one.

By the way let me say, that it is really fantastic to see how much of quality work you have invested in this project.

Displaying immediately the result the command like the achieved On/Off state of the actor on the form would be the 'Sahnehäubchen'

Yes, maybe we would need to define some kind of response topic or something like this.

By the way let me say, that it is really fantastic to see how much of quality work you have invested in this project.

Thanks a lot. This project is a lot of fun. It is also great to have some contributors on my side to take about such topics so thank you as well 👍

@philipparndt, @AndreCouture
In the meantime I spend some time learning SwiftUI (which turned out to be rather hard) and to analyze your App which turned out to be hard as well for someone who is used to program in C#.
Now I thought about a proposal for the User Interface for sending Custom Commands (the function still has to be implemented).
What do you think?

IMG_1775

IMG_1776

IMG_1777

I like the idea of having templates / persisted commands. I've planed to start next week to implement this

I now have a first working solution for 'Custom Commands'. A set of commands can be assigned to each host. For now the commands are only persistent as long as the App is running. If you are interested, the code is on the dev2 branch of my repo GitHub/RoSchmi