Open h3tz opened 1 year ago
Not sure.
The library doesn't keep track device type is capable of what and firmware numbers might not be reliable in the future.
I think it would be better to check the device response for its capabilities
e.g.
If /light/0
has no transition
key, then transition are not a valid parameter (though then question would be when is any key valid and should we allow invalid keys.
I'll see what Shelly devices can natively respond and see how to implement this.
We should take care according to the technical documentation which features are supported to throw exceptions in case a shelly device is not updated to date but a ShellyPy user would like to use a feature arrived in the latest feature: https://shelly-api-docs.shelly.cloud/gen1/#based-on-mongoose-os