test_stuff.yaml 645 B

1234567891011121314151617181920212223
  1. light:
  2. - platform: rflink
  3. devices:
  4. newkaku_013242b6_2:
  5. name: Piano-lamp
  6. type: switchable
  7. newkaku_013242b5_2:
  8. name: Piano-lamp REPEATER
  9. type: switchable
  10. sensor:
  11. - platform: sql
  12. db_url: mysql://hassio:hassiopassword@192.168.1.110/RemoteRxLog
  13. queries:
  14. - name: Piano-lamp repeater status
  15. query: "SELECT IF(onOff>0,'on','off') AS status FROM RemoteRxLog.nexaLog where rxTx='R' and remote_id = '20071094' and button='2' order by ts desc LIMIT 1;"
  16. column: 'status'
  17. input_boolean:
  18. piano_light_wanted_state:
  19. name: Piano-lamp, wanted state
  20. icon: mdi:lightbulb