Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update items, sitemap and add things
- Loading branch information
Showing
4 changed files
with
55 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
Group Home "406C" <house> | ||
|
||
Group Office "Office" <office> (Home) | ||
Group Livingroom "Livingroom" <living> (Home) | ||
|
||
Number Office_Temperature "Temperature [%.1f ºC]" <temperature> (Office) {mqtt="<[rpi:home/office/temperature:state:default]"} | ||
Number Office_Humidity "Humidity [%.1f%%]" <humidity> (Office) {mqtt="<[rpi:home/office/humidity:state:default]"} | ||
Switch Livingroom_Light "Livingroom Light" <light> (Livingroom) { channel="mqtt:topic:rpi:livingroomLightTH:PowerSwitch" } | ||
Switch Corridor_Light "Corridor Light" <light> (Livingroom) { channel="mqtt:topic:rpi:corridorLightTH:PowerSwitch" } | ||
|
||
Number RPI_Temperature "RPI Temperature [%.1f ºC]" <temperature> (Home) {mqtt="<[rpi:rpi/temperature:state:default]"} | ||
Group Balcony "Balcony" <terrace> (Home) | ||
|
||
Group Kitchen "Kitchen" <kitchen> (Home) | ||
|
||
Group Laundry "Laundry" <washingmachine> (Home) | ||
|
||
Group Suite "Suite" <bedroom> (Home) | ||
|
||
Group Office "Office" <office> (Home) | ||
|
||
Group GuestRoom "Guest Room" <bedroom> (Home) | ||
|
||
Group WC "W.C." <bath> (Home) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +0,0 @@ | ||
rule "Send telegram" | ||
when | ||
Item RPI_Temperature changed | ||
then | ||
var temperature = RPI_Temperature.state | ||
if (temperature > 50) { | ||
sendTelegram("406cBot", "A temperatura do RPI está %sºC", temperature.toString) | ||
} | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
sitemap 406c label="406C" { | ||
Frame { | ||
Text item=RPI_Temperature | ||
Group item=Office | ||
} | ||
Frame label="Livingroom" { | ||
Switch item=Livingroom_Light | ||
Switch item=Corridor_Light | ||
} | ||
|
||
Frame label="Balcony" { | ||
} | ||
|
||
Frame label="Kitchen" { | ||
} | ||
|
||
Frame label="Laundry" { | ||
} | ||
|
||
Frame label="Suite" { | ||
} | ||
|
||
Frame label="Office" { | ||
} | ||
|
||
Frame label="GuestRoom" { | ||
} | ||
|
||
Frame label="WC" { | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Bridge mqtt:bridge:rpi "RPI MQTT Broker" [ host="localhost", secure=false, username="rpi", password="rpi", clientID="rpiMQTTclient" ] | ||
{ | ||
Thing topic livingroomLightTH "livingroomLightTH" { | ||
Channels: | ||
Type switch : PowerSwitch [stateTopic="stat/sonoff-6765/POWER1" , transformationPattern="JSONPATH:$.POWER1" , commandTopic="cmnd/sonoff-6765/POWER1", on="ON", off="OFF"] | ||
Type string : Version [stateTopic="stat/sonoff-6765/STATUS2", transformationPattern="JSONPATH:$.StatusFWR.Version"] | ||
} | ||
|
||
Thing topic corridorLightTH "corridorLightTH" { | ||
Channels: | ||
Type switch : PowerSwitch [stateTopic="stat/sonoff-6765/POWER2" , transformationPattern="JSONPATH:$.POWER2" , commandTopic="cmnd/sonoff-6765/POWER2", on="ON", off="OFF"] | ||
Type string : Version [stateTopic="stat/sonoff-6765/STATUS2", transformationPattern="JSONPATH:$.StatusFWR.Version"] | ||
} | ||
} |