-
-
Notifications
You must be signed in to change notification settings - Fork 618
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
How do you execute actions? #114
Comments
Please provide the device model/urn and entity state attributes of the vacuum. |
This is what I have: And these are the attributes that got pulled in: Attributes
|
service: xiaomi_miot.call_action
data:
entity_id: vacuum.viomi_v18_entity_id
siid: 4
aiid: 13
params:
- 0 # Global
- 1 # Start
- xx,yy,zz # Room IDs But no properties related to the room-ids were found.
There is a more recommended method:
|
great! Will give it a go. So in HA I can use similar format to set_attributes and get_attributes as well? |
I tried to use Xiaomi Cloud map extractor but it fails to do anything |
I just used the modified app - really good info.
is it like that, where "domain" in my case is vacuum?: Unfortunately it did not work: |
This component will get all readable properties, so you can get the desired properties from the entity state properties. About set_attributes: service: xiaomi_miot.set_property
data:
entity_id: vacuum.your_vacuum_id
field: vacuum.mode
value: 3 # Strong
# Or
service: xiaomi_miot.set_miot_property
data:
entity_id: vacuum.your_vacuum_id
siid: 2
piid: 19
value: 0 # Silent |
The error code # customize.yaml
vacuum.viaomi_s9_vacuum_robot_cleaner:
miot_cloud_action: true
If you integrate via token, you need to configure the account password in # configuration.yaml
xiaomi_miot:
username: xiaomi_username
password: xiaomi_password
# server_country: cn # location of xiaomi cloud: cn(default), de, i2, ru, sg, us If you integrate via account, you do not need to configure the account password in yaml. |
Finally got it to work! Thank you for your support! |
not related to the issue but does anyone have a clue what "wdr mode" is? |
|
I can't get my dreame D9 Max to do room cleaning.
i get the following error: |
@fhold The integration domain service: xiaomi_miot.call_action
entity_id: vacuum.ayo
data:
siid: 4
aiid: 13
params:
- 0
- 1
- 2 |
you are absoultly correct i installed the component via HACS and must have gotten the wrong one. I also got now much more status information. The only thing is. If i try the command suggest from you it doesn't do anything. The room number might be wrong but i would expect to get an error then. Any ideas? here is the config of the robot: fan_speed_list:
- Silent
- Basic
- Strong
- Full Speed
battery_level: 100
battery_icon: mdi:battery-charging-100
fan_speed: Silent
model: dreame.vacuum.p2259
lan_ip: 192.168.20.82
mac_address: 24:18:C6:12:73:AF
firmware_version: 3.5.8_1004
hardware_version: ''
entity_class: MiotVacuumEntity
miot_type: urn:miot-spec-v2:device:vacuum:0000A006:dreame-p2259:1
vacuum.status: 2
vacuum.fault: 0
vacuum.mode: 0
clean_logs.first_clean_time: 1632337219
clean_logs.total_clean_time: 722
clean_logs.total_clean_times: 17
clean_logs.total_clean_area: 655
time.time_zone: Europe/Vienna
time.timer_clean: ''
audio.volume: 31
audio.voice_packet_id: DE
audio.voice_change_state: '{"id":"DE","state":"success","progress":100}'
audio.set_voice.error: '-704030013 Property is not readable'
map.frame_info.error: '-704030013 Property is not readable'
map.map_extend_data.error: '-704030013 Property is not readable'
map.mult_map_state: 0
map.mult_map_info: >-
{"object_name":"1745491455/447265963/9","md5":"44219b7f6b63ac600479d7b494251e61"}
do_not_disturb.enable: false
do_not_disturb.start_time: '22:00'
do_not_disturb.end_time: '08:00'
vacuum_extend.work_mode: 14
vacuum_extend.cleaning_time: 12
vacuum_extend.cleaning_area: 12
vacuum_extend.cleaning_mode: 0
vacuum_extend.mop_mode: 2
vacuum_extend.waterbox_status: 0
vacuum_extend.task_status: 0
vacuum_extend.clean_extend_data.error: '-704030013 Property is not readable'
break_point_restart-4-11: 1
vacuum_extend.carpet_press: 1
vacuum_extend.serial_number: P22591711EU00500ZM
vacuum_extend.remote_state.error: '-704030013 Property is not readable'
vacuum_extend.clean_rags_tip: 0
vacuum_extend.keep_sweeper_time: 0
vacuum_extend.faults: '0'
filter.filter_life_level: 91
filter.filter_left_time: 137
brush_left_time-10-1: 187
brush_life_level-10-2: 93
brush_cleaner.brush_left_time: 287
brush_cleaner.brush_life_level: 95
battery.battery_level: 100
battery.charging_state: 1
state_updater: cloud
sub_entities:
- filter-11.filter_life_level-1
- filter-11.filter_left_time-2
- battery-3.battery_level-1
- battery-3.charging_state-2
- brush_cleaner-9.brush_left_time-1
- brush_cleaner-9.brush_life_level-2
- brush_cleaner-10.brush_left_time-1
- brush_cleaner-10.brush_life_level-2
miot_action_error: '-704040005 Action does not exist'
miot_action_result:
did: '447265963'
miid: 0
siid: 4
aiid: 13
code: -704040005
friendly_name: Ayo Robot Cleaner
supported_features: 12536 |
@fhold The vacuum dreame.vacuum.p2259 does not have aiid 13 in siid 4. You can try: service: xiaomi_miot.call_action
entity_id: vacuum.ayo
data:
siid: 2
aiid: 3 # start-room-sweep
params:
- aa,bb # room-ids About |
@fhold |
what i don't understand why it does nothing and i don't see any errors in the log. Any idea what i can try? |
service: xiaomi_miot.call_action
entity_id: vacuum.ayo
data:
siid: 2
aiid: 3 # start-room-sweep
params:
- aa,bb # room-ids
throw: true # throw action result to HA notifications. Or you can find state attribute
|
I have successfully added Viomi vacuum cleaner and it worked great - pulled all the options in.
But how do you execute actions? I want to do defined room cleaning and under actions I have the following:
Actions
siid 4: aiid 7 Reset map: in: [] -> out: []
siid 4: aiid 10 Calibration: in: [] -> out: []
siid 4: aiid 11 Reset the usage time of the specified consumables: in: [35] -> out: []
siid 4: aiid 13 Choose room to clean: in: [36, 37, 38] -> out: []
The one in bold is the one I want to execute. 36, 37, 38 are defined by
siid 4: piid: 36 (clean-room-mode): (uint8, unit: none) (acc: ['write'])
{'value': 0,'description':'Global'}
{'value': 1,'description':'Along the edge'}
siid 4: piid: 37 (clean-room-oper): (uint8, unit: none) (acc: ['write'])
{'value': 0,'description':'stop'}
{'value': 1,'description':'Start'}
{'value': 2,'description':'Pause'}
siid 4: piid: 38 (clean-room-ids): (string, unit: none) (acc: ['write'])
Any assistance would be much appreciated
The text was updated successfully, but these errors were encountered: