example.cfg 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # Example configuration for modules HMCCU and HMCCUDEV
  3. #
  4. # Define device (hostname of CCU is "homematic")
  5. define d_ccu HMCCU homematic
  6. # Generate readings for values read from CCU
  7. attr d_ccu ccureadings 1
  8. # Parameterfile with channel/datapoints to be read from CCU
  9. # by command get parfile
  10. attr d_ccu parfile /opt/fhem/scripts/hmvalues.txt
  11. # If CCU systemvariable name ends with a ":" this character
  12. # will be removed. Applies to command set devstate only.
  13. # Helpful if CCU variable should be set as a reaction on an
  14. # event.
  15. attr d_ccu stripchar :
  16. # Substitute values read from CCU before storing them in a
  17. # reading.
  18. attr d_ccu substitute false:closed,true:open
  19. # Subsitute values before setting them
  20. attr d_ccu statevals on:true,off:false
  21. # Define client device for door/window sensor
  22. define d_hm_dw_window HMCCUDEV TF-WZ-Window readonly
  23. attr d_hm_dw_window ccureadings 1
  24. attr d_hm_dw_window substitute false:closed,true:open
  25. # Define client device for subwoofer with state channel 1
  26. define d_hm_st_sub HMCCUDEV ST-WZ-Sub 1
  27. attr d_hm_st_sub ccureadings 1
  28. attr d_hm_st_sub statevals on:true,off:false
  29. attr d_hm_st_sub substitute true:on,false:off
  30. # Update CCU readings and client devices every 10 minutes
  31. define at_ccu at +*00:10:00 get d_ccu parfile
  32. attr at_ccu alignTime 00:05