-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method to retrieve ALL possible GPIO components via MQTT, including assigned #6407
Comments
Not all GPIO are available in all compilations. Depending on defines enabled many GPIO's are not present so your list will almost never be complete. The ones assigned in module config can be shown with command |
Yes, I know. That's why I'm polling each device before configuring gpios. I don't want a list of all gpios available in whole Tasmota - but only in that certain device. |
The comboboxes in template edit shows exactly the data I need - independent of currently used/configured gpios. |
The template combo box holds exactly the same information as command |
Also, it would be so nice if the GPIOs JSON output would be a dict keyed with gpio id, instead of flat list, but one can only dream :) |
Ha, got it. Will see. |
What format would you like the dict keyed to look like? |
Oh, you spoil me. Maybe something like this:
etc IF the modules JSON output would follow suit it would be too good to be true ;) |
Add command Gpios 255/All to show all available GPIO components (#6407)
For now you'll have to deal with the old output format ;-) |
Hehe noticed, I'm reading the commit. Thanks a lot anyways. New output is just cosmetics, because it's easy to parse as-is. This commit was the main request and it finally allows templates to be edited using external tools. Thanks a lot! |
I'll change the ouput too as I noticed it is more readable and also not longer than the original. Hold on. |
Change JSON output format for commands Adc, Adcs, Modules, Gpio and Gpios from list to dictionary (#6407)
Yes, removing the brackets saves quite a few bytes in the whole payload. |
Add command Gpio 255 to show physical GPIO configuration of all non-flash pins (#6407)
The command "gpios" returns all components but without those assigned in module config or template. To be able to edit templates externally, this needs extra work to compile a complete list.
Such list of all available GPIOs (including these assigned) is available in the comboboxes in template edit - could it be available via MQTT? Maybe just adding a parameter to existing command, or a whole new command? That would greatly help external management tools (like TDM wink wink nudge nudge)
The text was updated successfully, but these errors were encountered: