Skip to content
Snippets Groups Projects
nbsp.items 3.4 KiB
Newer Older
Paul's avatar
Paul committed
// Syntax:
// Type ID "Name" <Icon> {thing_config}
Paul's avatar
Paul committed

Paul's avatar
Paul committed
// MPDs
{% for mpd in ["augenpruefraum", "wartezimmer", "leipzig"] %}

// MPD {{ mpd }}
Player mpd_{{ mpd }}_player  "Player"         { channel = "mpd:mpd:mpd_{{ mpd }}:control" }
Dimmer mpd_{{ mpd }}_volume  "Volume [%d %%]" { channel = "mpd:mpd:mpd_{{ mpd }}:volume" }
Switch mpd_{{ mpd }}_stop    "Stop"           { channel = "mpd:mpd:mpd_{{ mpd }}:stop" }
String mpd_{{ mpd }}_album   "Album [%s]"     { channel = "mpd:mpd:mpd_{{ mpd }}:currentalbum" }
String mpd_{{ mpd }}_artist  "Artist [%s]"    { channel = "mpd:mpd:mpd_{{ mpd }}:currentartist" }
String mpd_{{ mpd }}_name    "Name [%s]"      { channel = "mpd:mpd:mpd_{{ mpd }}:currentname" }
Number mpd_{{ mpd }}_song    "Song [%d]"      { channel = "mpd:mpd:mpd_{{ mpd }}:currentsong" }
Number mpd_{{ mpd }}_song_id "Song Id [%d]"   { channel = "mpd:mpd:mpd_{{ mpd }}:currentsongid" }
String mpd_{{ mpd }}_title   "Title [%s]"     { channel = "mpd:mpd:mpd_{{ mpd }}:currenttitle" }
Number mpd_{{ mpd }}_track   "Track [%d]"     { channel = "mpd:mpd:mpd_{{ mpd }}:currenttrack" }
{% endfor %}


Paul's avatar
Paul committed
// Items for Light in augenrprüfraum
Switch             augenpruefraum_lightswitch1       "Augenprüfraum 1"       <switch>      {channel="mqtt:topic:tasmota:tasmota_7C8E28:PowerSwitch1"}
Switch             augenpruefraum_lightswitch2       "Augenprüfraum 2"       <switch>      {channel="mqtt:topic:tasmota:tasmota_7C8E28:PowerSwitch2"}
Number:Power       augenpruefraum_lightswitch_power1 "Power1 [%.1f W]"       <energy>      {channel="mqtt:topic:tasmota:tasmota_7C8E28:Power1"}
Number:Power       augenpruefraum_lightswitch_power2 "Power2 [%.1f W]"       <energy>      {channel="mqtt:topic:tasmota:tasmota_7C8E28:Power2"}
Number:Temperature augenpruefraum_lightswitch_temp   "Temperature [%.1f °C]" <temperature> {channel="mqtt:topic:tasmota:tasmota_7C8E28:Temperature"}
Paul's avatar
Paul committed

// Lightswitch Lager
// device specific properties
Paul's avatar
Paul committed
Switch             lager_lightswitch1       "Lager 1"                     <switch>      {channel="mqtt:topic:tasmota:tasmota_7C8270:PowerSwitch1"}
Switch             lager_lightswitch2       "Lager 2"                     <switch>      {channel="mqtt:topic:tasmota:tasmota_7C8270:PowerSwitch2"}
Number:Power       lager_lightswitch1_power "Lager Power 1 [%.1f W]"      <energy>      {channel="mqtt:topic:tasmota:tasmota_7C8270:Power1"}
Number:Power       lager_lightswitch2_power "Lager Power 2 [%.1f W]"      <energy>      {channel="mqtt:topic:tasmota:tasmota_7C8270:Power2"}
Number:Temperature lager_lightswitch_temp   "Lager Temperature [%.1f °C]" <temperature> {channel="mqtt:topic:tasmota:tasmota_7C8270:Temperature"}

// Lightswitch Werkstatt
// device specific properties
Switch             werkstatt_lightswitch1        "Werkstatt 1"                     <switch>      {channel="mqtt:topic:tasmota:tasmota_7C828C:PowerSwitch1"}
Switch             werkstatt_lightswitch2        "Werkstatt 2"                     <switch>      {channel="mqtt:topic:tasmota:tasmota_7C828C:PowerSwitch2"}
Number:Power       werkstatt_lightswitch1_power1 "Werkstatt Power 1 [%.1f W]"      <energy>      {channel="mqtt:topic:tasmota:tasmota_7C828C:Power1"}
Number:Power       werkstatt_lightswitch2_power2 "Werkstatt Power 2 [%.1f W]"      <energy>      {channel="mqtt:topic:tasmota:tasmota_7C828C:Power2"}
Number:Temperature werkstatt_lightswitch_temp    "Werkstatt Temperature [%.1f °C]" <temperature> {channel="mqtt:topic:tasmota:tasmota_7C828C:Temperature"}