configuration.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Configure a default setup of Home Assistant (frontend, api, etc)
  2. #default_config:
  3. config:
  4. frontend:
  5. logger:
  6. logs:
  7. rflink: debug
  8. homeassistant.components.rflink: debug
  9. homeassistant:
  10. packages: !include_dir_named packages
  11. binary_sensor:
  12. counter:
  13. logbook:
  14. notify:
  15. input_boolean:
  16. input_datetime:
  17. input_number:
  18. input_select:
  19. input_text:
  20. timer:
  21. #websocket_api
  22. system_health:
  23. recorder:
  24. purge_keep_days: 5
  25. db_url: mysql://hassio:hassiopassword@192.168.1.110/hass?charset=utf8
  26. history:
  27. rflink:
  28. host: 127.0.0.1
  29. port: 12345
  30. wait_for_ack: false
  31. sensor:
  32. - platform: rflink
  33. automatic_add: true
  34. - platform: sql
  35. db_url: mysql://hassio:hassiopassword@192.168.1.110/RemoteRxLog
  36. queries:
  37. - name: Lux outside the garage
  38. query: "SELECT CAST(AVG(data) AS signed) as data FROM (SELECT data FROM RemoteRxLog.rawTemp WHERE type = 'lux' and data < '65535' ORDER BY id DESC LIMIT 3) items;"
  39. column: 'data'
  40. unit_of_measurement: Lux
  41. - name: Exterior light status
  42. query: "SELECT onOff FROM RemoteRxLog.nexaLog where remote_id = '20071094' and button='1' order by ts desc LIMIT 1;"
  43. column: 'onOff'
  44. - name: Outside temperature
  45. query: "SELECT temp1 FROM RemoteRxLog.temp order by ts desc LIMIT 1;"
  46. column: 'temp1'
  47. unit_of_measurement: C
  48. switch:
  49. - platform: rflink
  50. automatic_add: true
  51. group: !include groups.yaml
  52. automation: !include automations.yaml
  53. script: !include scripts.yaml
  54. scene: !include scenes.yaml