-
Notifications
You must be signed in to change notification settings - Fork 20
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
aiid #16
Comments
Could you provide an example miot device model / miot spec file which uses aiid's? |
You could try something like this:
|
Hello. I have tried as script, but it is not working:
The device is this: hfjh.fishbowl.v2 And the protocol:
|
@rezmus It's possible to call aiid's from the local network or it's cloud only? |
@syssi depends. most actions you are just cmds with action method sent to device, they should work from local. some actions are special handled only by cloud code, not really passed to device as cmd (for example action to open gh/alexa rtsp stream for some cams). many actions using "in" params are not well described by spec files, you need to log device to get proper format. |
If I use in python-miio That return this: And the action is working fine. |
Finally it is working if I use this:
The only thing I get an error, but the action works:
|
Good job! We could try to make the expected response configurable. Do you know the meaning of the 3 values? |
Not really, always return [182, 4, 0] each time I run the action |
Please call the action tomorrow again. Is it always |
still the same: |
Hello.
How can I call to action?
Some miot devices has aiid example:
{"method":"action","params":{"did":"X","siid":2,"aiid":7,"in":[]},"id":123}
in python-miio
get_property_by(siid, piid) returns a single property, useful for testing with miiocli
set_property_by(siid, piid, value, value_type) allows setting one, value_type is optional and will be used for casting to correct type before passing the value to send().
**call_action(name, params) calls an action with the given parameters, anything inside mapping that has aiid is considered an action.
call_action_by(siid, aiid, params) allows calling arbitrary actions, useful especially for command-line use and testing.**
The text was updated successfully, but these errors were encountered: