Sha256: 037d97f52f428dc234b984304761da2f6cd1d3d290d1e3bfc0c944fd7d12c4ad

Contents?: true

Size: 1.99 KB

Versions: 1

Compression:

Stored size: 1.99 KB

Contents

homeassistant 'home' do
  longitude 2.3267746000000216
  latitude  48.8264967
  elevation 66
  unit_system 'metric'
  time_zone 'Europe/Paris'
  customize('switch.capodimonte_led': { icon: 'mdi:led-variant-on' })
end

media_player 'KoKodi' do
  platform :kodi
  host 'http://192.168.0.13'
  port 8080
end

sun          # Track sun position
discovery    # Discover some devices automatically
frontend     # Enable home-assistant front-end
conversation # Allow to issue voice commands from the frontend
zeroconf     # Expose home-assistant over bonjour

recorder do
  purge_days 14
end

logbook do
  # sun moves too much, useless in the log
  exclude(domains: %w(sun))
end

updater do
  reporting 'no'
end

yr__sensor
# strictly equivalent to:
#sensor do
#  platform :yr
#end


speedtest__sensor do
  monitored_conditions %w(ping)
  #hour [0, 6, 12, 18]
  #minute 5
end

darksky__sensor do
  api_key 'FAKE_KEY'
end

statistics__sensor 'Ping Stats' do
  entity_id 'sensor.speedtest_ping'
end

waqi__sensor do
  locations %w(paris)
  stations ['place victor basch']
end

nmap_tracker__device_tracker do
  hosts '192.168.0.0/24'
  home_interval 10
  interval_seconds 120
  track_new_devices 'yes'
end

zone 'Criteo' do
  longitude 2.331610
  latitude 48.878887
  icon 'mdi:desktop-tower'
end

limitless__light do
  bridges([
            { host: '192.168.0.110', groups: [{ number: 1, type: 'rgbw', name: 'Table à manger' }] }
          ])
end

automation 'Activate movie playing scene' do
  # trigger.when('KoKodi').from(:paused).to(:playing)

  # Other examples
  trigger.when('KoKodi').playing
  # equivalent to:
  # trigger.when('KoKodi').to(:playing)

  # trigger.at('18:00:00')
  # trigger.when('sun').set
  # trigger.on('my_event_name') # using platform 'event'
  #
  # Documentation:
  # trigger.when('a component short name') creates a trigger on the component state. It is possible to call:
  # from('old state') and  to('new state') on it.
  # It is also possible to call any method whose name is the new state, like .playing
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
home_assistant-generator-0.1.0.pre.alpha.pre.14 example_config.rb