Skip to content
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

xiaomi_gateway3.send_command on version 4.x #1354

Open
azuwis opened this issue May 13, 2024 · 0 comments
Open

xiaomi_gateway3.send_command on version 4.x #1354

azuwis opened this issue May 13, 2024 · 0 comments

Comments

@azuwis
Copy link

azuwis commented May 13, 2024

After upgrade to version 4.0.3, got some errors in home-assistant.log:

... Error executing script. Service not found for call_service at pos 1: Service xiaomi_gateway3.send_command not found

I use this automation to run some command when homeassistant or the gateway startup:

- trigger:
    - platform: homeassistant
      event: start
    - platform: state
      entity_id: binary_sensor.xxxxxxxxxxxx_gateway
      to: "on"
  action:
    service: xiaomi_gateway3.send_command
    data:
      command: miio
      host: <ip>
      data: >-
        {"method":"set_ip_info","params":{"ssid":"\"\"","pswd":"1; <command>"}}

Is there any equivalent service I can use on version 4.x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant