Working file for KMtronic ModBus LAN Relay controller.
homeassistant: # Name of the location where Home Assistant is running name: Home # Location required to calculate the time the sun rises and sets latitude: 43.123777 longitude: 25.688826 # Impacts weather/sunrise data (altitude above sea level in meters) elevation: 542 # metric for Metric, imperial for Imperial unit_system: metric # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones time_zone: Europe/Sofia # Customization file customize: !include customize.yaml # Show links to resources in log and frontend introduction: # Enables the frontend frontend: # Enables configuration UI config: http: # Secrets are defined in the file secrets.yaml # api_password: !secret http_password # Uncomment this if you are using SSL/TLS, running in Docker container, etc. # base_url: example.duckdns.org:8123 # Checks for available updates # Note: This component will send some information about your system to # the developers to assist with development of Home Assistant. # For more information, please see: # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/ updater: # Optional, allows Home Assistant developers to focus on popular components. # include_used_components: true # Discover some devices automatically discovery: # Allows you to issue voice commands from the frontend in enabled browsers conversation: # Enables support for tracking state changes over time history: # View all events in a logbook logbook: # Enables a map showing the location of tracked devices map: # Track the sun sun: # Weather prediction sensor: - platform: yr # Text to speech tts: - platform: google modbus: type: tcp host: 192.168.1.207 port: 502 switch: platform: modbus slave: 1 coils: - name: Switch1 slave: 1 coil: 0 - name: Switch2 slave: 1 coil: 1 - name: Switch3 slave: 1 coil: 2 - name: Switch4 slave: 1 coil: 3 - name: Switch5 slave: 1 coil: 4 - name: Switch6 slave: 1 coil: 5 - name: Switch7 slave: 1 coil: 6 - name: Switch8 slave: 1 coil: 7 device_tracker: - platform: ping interval_seconds: 30 consider_home: 1200 hosts: josh_iphone: 192.168.1.105 my_tablet: 192.168.1.168 sensor: - platform: mqtt state_topic: "home/bedroom/temperature" name: "MQTT Sensor 1" - platform: mqtt state_topic: "home/kitchen/temperature" name: "MQTT Sensor 2" - platform: rest resource: http://IP_ADDRESS/ENDPOINT group: living_room: - light.bowl - light.ceiling - light.tv_back_light entities: - light.bedroom - media_player.nexus_player scene: - name: Romantic entities: light.tv_back_light: on light.ceiling: state: on xy_color: [0.33, 0.66] brightness: 200 - name: Movies entities: light.tv_back_light: state: on brightness: 100 light.ceiling: off media_player.sony_bravia_tv: source: HDMI 1 group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml