Re: [mh] Adding ability to send arbitrary commands to Tasmota
Jeff Siddall via misterhouse-users <[email protected]>
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
I could be wrong, but I am guessing the number of people converting from MQTT to Tasmota_HTTP could be counted on one hand (and are probably already on this thread!) so it would likely be easier to just convert the user code to be case insensitive instead of adding a bunch of backward compatibility into the code base. Perhaps a note on the Wiki indicating that Tasmota_HTTP::Item presents the JSON directly from Tasmota whereas MQTT lower cases all the data so people are aware. Jeff On 2021-02-03 3:39 p.m., Giles Godart-Brown wrote: > > I'm with Jeff on this one, MisterHouse shouldn't be messing with the > case of a JSON message. > > The only exception I've currently coded in Tasmota_HTTP::Item is the > edge case where someone sends a run_cmnd with no command string, in > which case it just returns the state of the device in lower case (on > or off) to be consistent with MisterHouse states. > > I'll take a look at MQTT_DEVICE in the morning and see where the lc is > creeping in, maybe we can double up the JSON to have both mixed case > and lower case keys and values in the response so current code doesn't > break? > > G > ________________________________________________________ To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users