mikey0000 / home-assistant-mysql-command

Home Assistant custom component that creates a Notify service to send a command to a MySQL server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

home-assistant-mysql-command

Home Assistant custom component that creates a Notify service to send a command to a MySQL server.

Features

  • Ability to send commands to a MySQL server using the Notify platform / service

Inspired by:

https://community.home-assistant.io/t/how-do-i-call-an-insert-sql-command-to-mariadb-addon/

Configuration

YAML

In configuration.yaml:

notify:
  - platform: mysql_command
    host: 192.168.1.20
    db: your_db
    username: your_user
    password: your_password

About

Home Assistant custom component that creates a Notify service to send a command to a MySQL server.


Languages

Language:Python 100.0%