Closed rrroyal closed 6 years ago
I already have plans to implement support for such things. However I would prefer an implementation which allow specifying a regex pattern, so any possible response can be achieved and accepted by the plugin. Also backwards compatibility isn't covered with your changes.
It takes value 'jsonValue' from config.json of Homebridge, dont know how to implement it though. The base for parsing value from JSON response is done, the only thing that requires work is the editing value in config file (we dont want people editing source file of plugin ;) )
Expects JSON formatted response from server, and takes the value defined in config.json of Homebridge (for example
status.temperature
for[{"status":{"temperature":"12"}}]