Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-warpzone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infrastruktur
ansible-warpzone
Commits
7c60a5c0
Commit
7c60a5c0
authored
3 years ago
by
Christian Elberfeld
Browse files
Options
Downloads
Patches
Plain Diff
Ansteuerung Werkstatt Licht
parent
da951005
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
warpsrvint/docker_openhab/templates/conf/items/mqtt.items
+4
-0
4 additions, 0 deletions
warpsrvint/docker_openhab/templates/conf/items/mqtt.items
warpsrvint/docker_openhab/templates/conf/things/mqtt.things
+8
-3
8 additions, 3 deletions
warpsrvint/docker_openhab/templates/conf/things/mqtt.things
with
12 additions
and
3 deletions
warpsrvint/docker_openhab/templates/conf/items/mqtt.items
+
4
−
0
View file @
7c60a5c0
Number Werkstatt_Licht "Werkstatt Licht [%.0f (0-225)]" <light> (gHauptraum) ["Light"] {
channel="mqtt:topic:mosquitto:werkstattlicht:level"
}
{% for device in mqtt_sensors_temp %}
Number MQTT_{{ device.id }}_temp "Sensor {{ device.name }} Temp [%.1f °C]" <temperature> ({{ device.groups }}) ["Measurement","Temperature","CurrentTemperature"] {
...
...
This diff is collapsed.
Click to expand it.
warpsrvint/docker_openhab/templates/conf/things/mqtt.things
+
8
−
3
View file @
7c60a5c0
Bridge mqtt:broker:mosquitto [ host="{{ int_ip4 }}", secure=false, enableDiscovery=false ]
Bridge mqtt:broker:mosquitto [ host="{{ int_ip4 }}", secure=false, enableDiscovery=false
, qos=1, retain=true, async=false
]
{
Thing topic werkstattlicht "Werkstatt Licht (dali)" {
Channels:
Type number : level "Werkstatt Licht (dali)" [ stateTopic="light/dali", commandTopic="light/dali", postCommand=true, min=0, max=255 ]
}
{% for device in mqtt_sensors_temp %}
Thing topic {{ device.id }} {
Thing topic {{ device.id }}
"Sensor {{ device.name }}"
{
Channels:
Type number : temp "Sensor {{ device.name }} Temp" [ stateTopic="ESPHome/esphome_{{ device.id }}/sensor/temp/state" ]
Type number : pressure "Sensor {{ device.name }} Pressure" [ stateTopic="ESPHome/esphome_{{ device.id }}/sensor/pressure/state" ]
...
...
@@ -16,7 +21,7 @@ Bridge mqtt:broker:mosquitto [ host="{{ int_ip4 }}", secure=false, enableDiscove
{% for device in mqtt_sensors_feinstaub %}
Thing topic {{ device.id }} {
Thing topic {{ device.id }}
"Sensor {{ device.name }}"
{
Channels:
Type number : feinstaub_2_5 "Sensor {{ device.name }} 2.5 PM" [ stateTopic="ESPHome/esphome_{{ device.id }}/sensor/feinstaub_2_5/state" ]
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment