Skip to content

Commit

Permalink
🐈️ add support mmgg.feeder.petfeeder (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Dec 2, 2021
1 parent 8154ab8 commit b7fa635
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,17 @@
'lumi.switch.*': {
'cloud_delay_update': 10,
},
'mmgg.feeder.petfeeder': {
'sensor_attributes': 'feed_today',
'miio_commands': {
'getprops': [
'food_status', 'feed_plan', 'door_result', 'feed_today', 'clean_days', 'outlet_status',
'dryer_days', 'weight_level', 'wifi_led', 'key_lock', 'country_code',
],
# 'getfeedplan1': [],
# 'getfeedplan2': [],
},
},
'miaomiaoce.sensor_ht.t1': {
'miot_mapping': {
'temperature-2-1': {'siid': 2, 'piid': 1},
Expand Down

1 comment on commit b7fa635

@al-one
Copy link
Owner Author

@al-one al-one commented on b7fa635 Dec 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a script to feed:

alias: mmgg_feed_now
mode: single
sequence:
  - service: xiaomi_miot.send_command
    data:
      entity_id: sensor.mmgg_petfeeder_entity_id
      method: outfood
      params:
        - 1 # food amount 1-30

Please sign in to comment.