configuration.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. counter:
  12. logbook:
  13. notify:
  14. input_boolean:
  15. input_datetime:
  16. input_number:
  17. input_select:
  18. input_text:
  19. timer:
  20. #websocket_api
  21. pyscript:
  22. allow_all_imports: true
  23. system_health:
  24. recorder:
  25. purge_keep_days: 5
  26. db_url: mysql://hassio:hassiopassword@192.168.1.110/hass?charset=utf8
  27. history:
  28. rflink:
  29. host: 127.0.0.1
  30. port: 12345
  31. wait_for_ack: false
  32. # All off (group) 20;01;NewKaku;ID=006d7076;;SWITCH=0;CMD=ALLOFF;
  33. binary_sensor:
  34. - platform: rflink
  35. devices:
  36. newkaku_00066542_0:
  37. name: Ytterdörr brytare
  38. device_class: motion
  39. off_delay: 5
  40. sensor:
  41. - platform: rflink
  42. automatic_add: true
  43. - platform: sql
  44. db_url: mysql://hassio:hassiopassword@192.168.1.110/RemoteRxLog
  45. queries:
  46. - name: Lux outside the garage
  47. 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;"
  48. column: 'data'
  49. unit_of_measurement: Lux
  50. - name: Exterior light status
  51. query: "SELECT onOff FROM RemoteRxLog.nexaLog where rxTx='R' and remote_id = '20071094' and button='1' order by ts desc LIMIT 1;"
  52. column: 'onOff'
  53. - name: Outside temperature
  54. query: "SELECT temp1 FROM RemoteRxLog.temp order by ts desc LIMIT 1;"
  55. column: 'temp1'
  56. unit_of_measurement: C
  57. switch:
  58. - platform: rflink
  59. automatic_add: true
  60. group: !include groups.yaml
  61. automation: !include automations.yaml
  62. script: !include scripts.yaml
  63. scene: !include scenes.yaml