This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Toggle from 'material-ui/Toggle'; | |
import Slider from 'material-ui/Slider'; | |
const LightItem = (props) => ( | |
<div className='items'> | |
<div className='item toggle'> | |
<Toggle | |
toggled={props.isOn} | |
label={props.name} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import LightItem from './LightItem'; | |
import Config from './config'; | |
class LightsView extends Component { | |
constructor(props) { | |
super(props); | |
this.requestFailed = false; | |
this.data = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: automation1 | |
alias: Turn on garage lights when sun sets | |
initial_state: true | |
hide_entity: false | |
trigger: | |
- event: sunset | |
offset: 00:25:00 | |
platform: sun | |
action: | |
- data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
garage_group: | |
name: Garage | |
entities: | |
- sensor.garage_temp | |
- sensor.garage_humidity | |
- light.garage | |
default_view: | |
view: yes | |
entities: | |
- group.groundfloor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"192.168.1.232": {"username": "abEJiR9bcFAISEcg-RO93RPZXZ2zXfSG-pKWc6in"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_view: | |
view: yes | |
entities: | |
- configurator.philips_hue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
discovery: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
automation: | |
alias: Notify Lars when door is opened | |
trigger: | |
platform: state | |
entity_id: sensor.front_door_opened | |
action: | |
service: notify.ios_larsiphone | |
data: | |
message: The front door has been opened! | |
data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ios: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
automation: | |
alias: Notify Lars when door is opened | |
trigger: | |
platform: state | |
entity_id: sensor.front_door_opened | |
condition: | |
condition: state | |
entity_id: device_tracker.larsiphone | |
state: not_home | |
action: |