Skip to content

Commit 5d3ca8b

Browse files
authored
Replace object_id with default_entity_id in configuration (#61)
1 parent 3f2b4d9 commit 5d3ca8b

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

pwsmqttdispatcher/contrib/configuration.yaml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,153 +1,153 @@
11
mqtt:
22
sensor:
3-
- object_id: wh2600_temperatureIndoor
3+
- default_entity_id: wh2600_temperatureIndoor
44
unique_id: 6b464994-96b2-11ee-b9d1-0242ac120002
55
name: "Indoor temperature"
66
state_topic: "weather_station/data"
77
value_template: "{{ value_json.temperatureIndoor | float }}"
88
unit_of_measurement: "C"
9-
- object_id: wh2600_humidityIndoor
9+
- default_entity_id: wh2600_humidityIndoor
1010
name: "Indoor humidity"
1111
unique_id: "0f763901-82fa-4842-acf7-ecb605f653b3"
1212
state_topic: "weather_station/data"
1313
value_template: "{{ value_json.humidityIndoor }}"
1414
unit_of_measurement: "%"
15-
- object_id: wh2600_pressureAbsolute
15+
- default_entity_id: wh2600_pressureAbsolute
1616
name: "Absolute pressure"
1717
unique_id: "7aa0169e-fd9f-4fed-8b7e-ebfb126663de"
1818
state_topic: "weather_station/data"
1919
value_template: "{{ value_json.pressureAbsolute }}"
2020
unit_of_measurement: "hpa"
21-
- object_id: wh2600_pressureRelative
21+
- default_entity_id: wh2600_pressureRelative
2222
name: "Relative pressure"
2323
unique_id: "cacd6e64-93a2-44e0-b357-8ac13684a666"
2424
state_topic: "weather_station/data"
2525
value_template: "{{ value_json.pressureRelative }}"
2626
unit_of_measurement: "hpa"
27-
- object_id: wh2600_temperature
27+
- default_entity_id: wh2600_temperature
2828
name: "Temperature"
2929
unique_id: "03e3bd22-3947-4efb-b487-624553457567"
3030
state_topic: "weather_station/data"
3131
value_template: "{{ value_json.temperature }}"
3232
unit_of_measurement: "C"
33-
- object_id: wh2600_humidity
33+
- default_entity_id: wh2600_humidity
3434
name: "Humidity"
3535
unique_id: "6a126d8b-a838-4fb4-af46-7987d86e3a33"
3636
state_topic: "weather_station/data"
3737
value_template: "{{ value_json.humidity }}"
3838
unit_of_measurement: "%"
39-
- object_id: wh2600_dewPoint
39+
- default_entity_id: wh2600_dewPoint
4040
name: "Dew point"
4141
unique_id: "1b08a890-ab17-465d-97c9-5b921b10263a"
4242
state_topic: "weather_station/data"
4343
value_template: "{{ value_json.dewPoint }}"
4444
unit_of_measurement: "C"
45-
- object_id: wh2600_windDir
45+
- default_entity_id: wh2600_windDir
4646
name: "Wind bearing"
4747
unique_id: "752a47d0-dfdc-4b32-b44d-d922bd22c9a1"
4848
state_topic: "weather_station/data"
4949
value_template: "{{ value_json.windDir }}"
5050
unit_of_measurement: "deg"
51-
- object_id: wh2600_windDirCardinal
51+
- default_entity_id: wh2600_windDirCardinal
5252
name: "Wind bearing (cardinal)"
5353
unique_id: "7a9f6f16-b89b-4e30-9453-281701bc7e82"
5454
state_topic: "weather_station/data"
5555
value_template: "{{ value_json.windDirCardinal }}"
5656
unit_of_measurement: ""
57-
- object_id: wh2600_windSpeed
57+
- default_entity_id: wh2600_windSpeed
5858
name: "Wind speed"
5959
unique_id: "88a66c7c-be97-48b8-8406-fe41b27a6827"
6060
state_topic: "weather_station/data"
6161
value_template: "{{ value_json.windSpeed }}"
6262
unit_of_measurement: "km/h"
63-
- object_id: wh2600_windGust
63+
- default_entity_id: wh2600_windGust
6464
name: "Wind gust"
6565
unique_id: "88b2d39a-7153-4d79-aada-3c1f5fd6940e"
6666
state_topic: "weather_station/data"
6767
value_template: "{{ value_json.windGust }}"
6868
unit_of_measurement: "km/h"
69-
- object_id: wh2600_windChill
69+
- default_entity_id: wh2600_windChill
7070
name: "Wind chill"
7171
unique_id: "27df4bb5-dbaa-4e6f-8ce5-4181e970f093"
7272
state_topic: "weather_station/data"
7373
value_template: "{{ value_json.windChill }}"
7474
unit_of_measurement: "C"
75-
- object_id: wh2600_solarRadiation
75+
- default_entity_id: wh2600_solarRadiation
7676
name: "Solar radiation"
7777
unique_id: "6e61024c-75e7-4196-a4f2-c953fe8596b6"
7878
state_topic: "weather_station/data"
7979
value_template: "{{ value_json.solarRadiation }}"
8080
unit_of_measurement: "w/m2"
81-
- object_id: wh2600_uv
81+
- default_entity_id: wh2600_uv
8282
name: "UV"
8383
unique_id: "4ba1c38c-e159-434e-8245-95794a9a0048"
8484
state_topic: "weather_station/data"
8585
value_template: "{{ value_json.uv }}"
8686
unit_of_measurement: ""
87-
- object_id: wh2600_uvi
87+
- default_entity_id: wh2600_uvi
8888
name: "UV Index"
8989
unique_id: "cf1b8c2e-27cc-448e-b965-f1cb04c028e3"
9090
state_topic: "weather_station/data"
9191
value_template: "{{ value_json.uvi }}"
9292
unit_of_measurement: ""
93-
- object_id: wh2600_precipHourlyRate
93+
- default_entity_id: wh2600_precipHourlyRate
9494
name: "Rain hourly rate"
9595
unique_id: "0281a8ec-7fb8-458d-a0f1-b2d6e2c65b47"
9696
state_topic: "weather_station/data"
9797
value_template: "{{ value_json.precipHourlyRate }}"
9898
unit_of_measurement: "mm"
99-
- object_id: wh2600_precipDaily
99+
- default_entity_id: wh2600_precipDaily
100100
name: "Daily rain"
101101
unique_id: "4266b583-aa12-49f7-94ac-dacab2381064"
102102
state_topic: "weather_station/data"
103103
value_template: "{{ value_json.precipDaily }}"
104104
unit_of_measurement: "mm"
105-
- object_id: wh2600_precipWeekly
105+
- default_entity_id: wh2600_precipWeekly
106106
name: "Weekly rain"
107107
unique_id: "ecd9d750-e115-49a0-91c2-5782135ce2cb"
108108
state_topic: "weather_station/data"
109109
value_template: "{{ value_json.precipWeekly }}"
110110
unit_of_measurement: "mm"
111-
- object_id: wh2600_precipMonthly
111+
- default_entity_id: wh2600_precipMonthly
112112
name: "Monthly rain"
113113
unique_id: "8a1922b9-4b30-4d13-aa54-ce390771f20c"
114114
state_topic: "weather_station/data"
115115
value_template: "{{ value_json.precipMonthly }}"
116116
unit_of_measurement: "mm"
117-
- object_id: wh2600_precipYearly
117+
- default_entity_id: wh2600_precipYearly
118118
name: "Yearly rain"
119119
unique_id: "bf00ac02-5b51-4e9d-83d0-9eb8eb030256"
120120
state_topic: "weather_station/data"
121121
value_template: "{{ value_json.precipYearly }}"
122122
unit_of_measurement: "mm"
123-
- object_id: wh2600_heatIndex
123+
- default_entity_id: wh2600_heatIndex
124124
name: "Heat Index"
125125
unique_id: "506dc2d9-a478-4c92-9117-985d39fc49e3"
126126
state_topic: "weather_station/data"
127127
value_template: "{{ value_json.heatIndex }}"
128128
unit_of_measurement: "C"
129-
- object_id: wh2600_timestamp
129+
- default_entity_id: wh2600_timestamp
130130
name: "Last update"
131131
unique_id: "506dc2d9-a478-4c92-9117-985d39fc49e4"
132132
state_topic: "weather_station/data"
133133
value_template: "{{ value_json.receiverTimestamp | timestamp_custom('%Y-%m-%d %H:%M:%S') }}"
134134
unit_of_measurement: ""
135-
- object_id: wh2600_battery_indoor
135+
- default_entity_id: wh2600_battery_indoor
136136
name: "Indoor sensor battery"
137137
unique_id: "ee726d0d-f0ab-4ae7-82a2-35bde5fdb279"
138138
state_topic: "weather_station/data"
139139
value_template: "{{ value_json.indoorSensorBattery }}"
140-
- object_id: wh2600_sensor_id_indoor
140+
- default_entity_id: wh2600_sensor_id_indoor
141141
name: "Indoor sensor ID"
142142
unique_id: "b254bf9f-cbf5-4d1c-a8d4-8aab0b88cc20"
143143
state_topic: "weather_station/data"
144144
value_template: "{{ value_json.indoorSensorId }}"
145-
- object_id: wh2600_battery_outdoor
145+
- default_entity_id: wh2600_battery_outdoor
146146
name: "Outdoor sensor battery"
147147
unique_id: "e793fb44-1a2f-44aa-8fc0-6f2107edcc4b"
148148
state_topic: "weather_station/data"
149149
value_template: "{{ value_json.outdoorSensorBattery }}"
150-
- object_id: wh2600_sensor_id_outdoor
150+
- default_entity_id: wh2600_sensor_id_outdoor
151151
name: "Outdoor sensor ID"
152152
unique_id: "5fbb9b78-ece6-45d2-ae3f-f8ac01af2cd7"
153153
state_topic: "weather_station/data"

0 commit comments

Comments
 (0)