|
| 1 | +gateway: |
| 2 | + identity: |
| 3 | + name: "HomeAssistantGateway1" |
| 4 | + devicekey: "hagateway" |
| 5 | + endpoint: |
| 6 | + base: "house/homeassistant" |
| 7 | + gatewaystatssubpath: "gateway/stats" |
| 8 | + gatewayconfigsubpath: "gateway/config" |
| 9 | + entitiessubpath: "entities" |
| 10 | + config: |
| 11 | + enabled: true |
| 12 | + publishrate: "120s" |
| 13 | + initialdelay: "10s" |
| 14 | + stats: |
| 15 | + enabled: true |
| 16 | + publishrate: "30s" |
| 17 | + initialdelay: "5s" |
| 18 | + |
| 19 | +home-assistant: |
| 20 | + api: |
| 21 | + port: 8123 |
| 22 | + host: <your HA IP / DNS address> |
| 23 | + protocol: "http" |
| 24 | + url: ${home-assistant.api.protocol}://${home-assistant.api.host}:${home-assistant.api.port} |
| 25 | + monitored-entities: |
| 26 | + - name: "HomeBatteryManualReserve" |
| 27 | + doupload: true |
| 28 | + initaldelay: "PT3s" |
| 29 | + retrievalrate: "PT60s" |
| 30 | + devicekey: "SnnManRsrvSttngs" |
| 31 | + endpoint: "homebatterymanualreservesettings" |
| 32 | + monitoredentities: |
| 33 | + - name: "Repeat manual reserve daily" |
| 34 | + entityid: "input_boolean.sonnenmanualreservewindowrepeatdaily" |
| 35 | + iottype: "SWITCH" |
| 36 | + fieldname: "repeatmanualreserveenabled" |
| 37 | + sendmode: "ON_CHANGE" |
| 38 | + - name: "Manual reserve enabled" |
| 39 | + entityid: "input_boolean.sonnenmanualreservewindowenabled" |
| 40 | + iottype: "SWITCH" |
| 41 | + fieldname: "manualreserveenabled" |
| 42 | + sendmode: "ON_CHANGE" |
| 43 | + - name: "Sonnen charge level" |
| 44 | + doupload: true |
| 45 | + initaldelay: "PT2s" |
| 46 | + retrievalrate: "PT30s" |
| 47 | + devicekey: "SnnBatUsrChrg" |
| 48 | + endpoint: "energy" |
| 49 | + monitoredentities: |
| 50 | + - name: "Sonnen user charge level" |
| 51 | + entityid: "sensor.sonnenbatterie_200357_state_charge_user" |
| 52 | + iottype: "PERCENT" |
| 53 | + fieldname: "userchargepercent" |
| 54 | + sendmode: "ON_REPORT" |
| 55 | + - name: "UtilityLuminance" |
| 56 | + doupload: true |
| 57 | + initaldelay: "PT5s" |
| 58 | + retrievalrate: "PT10s" |
| 59 | + devicekey: "UtilIlluminance" |
| 60 | + endpoint: "illuminance" |
| 61 | + monitoredentities: |
| 62 | + - name: "Utility Illuminance" |
| 63 | + entityid: "sensor.utility_room_myggspray_utility_illuminance" |
| 64 | + fieldname: "lux" |
| 65 | + sendmode: "ON_CHANGE" |
| 66 | + iottype: "LUMINANCE" |
| 67 | + - name: "Kitchen Door" |
| 68 | + doupload: true |
| 69 | + initaldelay: "PT4s" |
| 70 | + retrievalrate: "PT10s" |
| 71 | + devicekey: "MyggbettKtchnDr" |
| 72 | + endpoint: "door" |
| 73 | + monitoredentities: |
| 74 | + - name: "Kitchen door sensor" |
| 75 | + entityid: "binary_sensor.myggbett_kitchen_door" |
| 76 | + fieldname: "dooropen" |
| 77 | + sendmode: "ON_CHANGE" |
| 78 | + iottype: "BINARY_ON_OFF" |
| 79 | + - name: "Garden Door" |
| 80 | + doupload: true |
| 81 | + initaldelay: "PT5s" |
| 82 | + retrievalrate: "PT10s" |
| 83 | + devicekey: "MyggbettGrdnDr" |
| 84 | + endpoint: "door" |
| 85 | + monitoredentities: |
| 86 | + - name: "Garden door sensor" |
| 87 | + entityid: "binary_sensor.myggbett_conservatory_door" |
| 88 | + fieldname: "dooropen" |
| 89 | + sendmode: "ON_CHANGE" |
| 90 | + iottype: "BINARY_ON_OFF" |
| 91 | + - name: "Front Door" |
| 92 | + doupload: true |
| 93 | + initaldelay: "PT5s" |
| 94 | + retrievalrate: "PT10s" |
| 95 | + devicekey: "MyggbettFrntDr" |
| 96 | + endpoint: "door" |
| 97 | + monitoredentities: |
| 98 | + - name: "Front door sensor" |
| 99 | + entityid: "binary_sensor.myggbett_front_door" |
| 100 | + fieldname: "dooropen" |
| 101 | + sendmode: "ON_CHANGE" |
| 102 | + iottype: "BINARY_ON_OFF" |
| 103 | + - name: "Garage Door" |
| 104 | + doupload: true |
| 105 | + initaldelay: "PT5s" |
| 106 | + retrievalrate: "PT10s" |
| 107 | + devicekey: "MyggbettGrgDr" |
| 108 | + endpoint: "door" |
| 109 | + monitoredentities: |
| 110 | + - name: "Garage door sensor" |
| 111 | + entityid: "binary_sensor.myggbett_garage_door" |
| 112 | + fieldname: "dooropen" |
| 113 | + sendmode: "ON_CHANGE" |
| 114 | + iottype: "BINARY_ON_OFF" |
| 115 | + - name: "Filtered Grid Consumption" |
| 116 | + doupload: true |
| 117 | + initaldelay: "PT7s" |
| 118 | + retrievalrate: "PT10s" |
| 119 | + devicekey: "FiltGridCons" |
| 120 | + endpoint: "power" |
| 121 | + monitoredentities: |
| 122 | + - name: "Filtered grid" |
| 123 | + entityid: "sensor.filtered_grid_consumption" |
| 124 | + fieldname: "watts" |
| 125 | + sendmode: "ALWAYS" |
| 126 | + iottype: "POWER_WATTS" |
| 127 | + - name: "Solar Generation" |
| 128 | + doupload: true |
| 129 | + initaldelay: "PT8s" |
| 130 | + retrievalrate: "PT10s" |
| 131 | + devicekey: "SolGenTotal" |
| 132 | + endpoint: "power" |
| 133 | + monitoredentities: |
| 134 | + - name: "Solar Generation Combined" |
| 135 | + entityid: "input_number.solargenerationcombinedcurrent" |
| 136 | + fieldname: "watts" |
| 137 | + sendmode: "ALWAYS" |
| 138 | + iottype: "POWER_WATTS" |
| 139 | + - name: "Car Charger Power" |
| 140 | + doupload: true |
| 141 | + initaldelay: "PT8s" |
| 142 | + retrievalrate: "PT10s" |
| 143 | + devicekey: "CrChrgrPwr" |
| 144 | + endpoint: "power" |
| 145 | + monitoredentities: |
| 146 | + - name: "Car charging rate" |
| 147 | + entityid: "sensor.myenergi_zappi_20758989_power_ct_internal_load" |
| 148 | + fieldname: "watts" |
| 149 | + sendmode: "ALWAYS" |
| 150 | + iottype: "POWER_WATTS" |
| 151 | + - name: "Indoor Temperature" |
| 152 | + doupload: true |
| 153 | + initaldelay: "PT3s" |
| 154 | + retrievalrate: "PT60s" |
| 155 | + devicekey: "AvgIndrTmp" |
| 156 | + endpoint: "temperature" |
| 157 | + monitoredentities: |
| 158 | + - name: "Average Indoor Temperature" |
| 159 | + entityid: "sensor.avgindoortemperature" |
| 160 | + fieldname: "temperature" |
| 161 | + sendmode: "ALWAYS" |
| 162 | + iottype: "TEMPERATURE" |
| 163 | + - name: "Outdoor Temperature" |
| 164 | + doupload: true |
| 165 | + initaldelay: "PT3s" |
| 166 | + retrievalrate: "PT60s" |
| 167 | + devicekey: "AvgOtdrTmp" |
| 168 | + endpoint: "temperature" |
| 169 | + monitoredentities: |
| 170 | + - name: "Average Outdoor Temperature" |
| 171 | + entityid: "sensor.avgoutdoortemperature" |
| 172 | + fieldname: "temperature" |
| 173 | + sendmode: "ALWAYS" |
| 174 | + iottype: "TEMPERATURE" |
| 175 | + - name: "Indoor Relative Humidity" |
| 176 | + doupload: true |
| 177 | + initaldelay: "PT2s" |
| 178 | + retrievalrate: "PT60s" |
| 179 | + devicekey: "AvgIndrRltvHmdty" |
| 180 | + endpoint: "relativehumidity" |
| 181 | + monitoredentities: |
| 182 | + - name: "Average Indoor Relative Humidity" |
| 183 | + entityid: "sensor.avgindoorhumidity" |
| 184 | + fieldname: "relativehumidity" |
| 185 | + sendmode: "ALWAYS" |
| 186 | + iottype: "RELATIVE_HUMIDITY" |
| 187 | + - name: "Outdoor Relative Humidity" |
| 188 | + doupload: true |
| 189 | + initaldelay: "PT2s" |
| 190 | + retrievalrate: "PT60s" |
| 191 | + devicekey: "AvgOtdrRltvHmdty" |
| 192 | + endpoint: "relativehumidity" |
| 193 | + monitoredentities: |
| 194 | + - name: "Average Outdoor Relative Humidity" |
| 195 | + entityid: "sensor.avgoutdoorhumidity" |
| 196 | + fieldname: "relativehumidity" |
| 197 | + sendmode: "ALWAYS" |
| 198 | + iottype: "RELATIVE_HUMIDITY" |
| 199 | + - name: "Air Pressure" |
| 200 | + doupload: true |
| 201 | + initaldelay: "PT6s" |
| 202 | + retrievalrate: "PT60s" |
| 203 | + devicekey: "AvgArPrssr" |
| 204 | + endpoint: "airpressure" |
| 205 | + monitoredentities: |
| 206 | + - name: "Average Air Pressure" |
| 207 | + entityid: "sensor.avgairpressure" |
| 208 | + fieldname: "airpressure" |
| 209 | + sendmode: "ALWAYS" |
| 210 | + iottype: "AIR_PRESSURE" |
| 211 | + - name: "Car Charger Energy" |
| 212 | + doupload: true |
| 213 | + initaldelay: "PT7s" |
| 214 | + retrievalrate: "PT60s" |
| 215 | + devicekey: "CrChrgTdy" |
| 216 | + endpoint: "kilowatthours" |
| 217 | + monitoredentities: |
| 218 | + - name: "Energy to car today" |
| 219 | + entityid: "sensor.myenergi_zappi_20758989_energy_used_today" |
| 220 | + fieldname: "kilowatthours" |
| 221 | + sendmode: "ALWAYS" |
| 222 | + iottype: "ENERGY_KILO_WATT_HOURS" |
| 223 | + - name: "Daily groid energy flows" |
| 224 | + doupload: true |
| 225 | + initaldelay: "PT1s" |
| 226 | + retrievalrate: "PT60s" |
| 227 | + devicekey: "DlyGrdFlws" |
| 228 | + endpoint: "dailygridenergyflows" |
| 229 | + monitoredentities: |
| 230 | + - name: "Imported from grid today" |
| 231 | + entityid: "sensor.myenergi_hub_20758989_grid_import_today_2" |
| 232 | + fieldname: "importkwh" |
| 233 | + sendmode: "ALWAYS" |
| 234 | + iottype: "ENERGY_KILO_WATT_HOURS" |
| 235 | + - name: "Exported to grid today" |
| 236 | + entityid: "sensor.myenergi_hub_20758989_grid_export_today_2" |
| 237 | + fieldname: "exportkwh" |
| 238 | + sendmode: "ALWAYS" |
| 239 | + iottype: "ENERGY_KILO_WATT_HOURS" |
| 240 | + |
| 241 | +mqtt: |
| 242 | + enabled: true |
| 243 | + broker: |
| 244 | + #host: localhost |
| 245 | + host: ${private.devicehost} |
| 246 | + # 8883 for iot service, 1883 for local mosquito |
| 247 | + #port: 1883 |
| 248 | + port: 8883 |
| 249 | + # mqtt protocol - either tcp for local or ssl for remote |
| 250 | + #protocol: tcp |
| 251 | + protocol: ssl |
| 252 | + client: |
| 253 | + # Unique identifier for this MQTT client |
| 254 | + # The gateway name, not any device name |
| 255 | + client-id: ${gateway.identity.name} |
| 256 | + |
| 257 | + # MQTT broker connection |
| 258 | + server-uri: ${mqtt.broker.protocol}://${mqtt.broker.host}:${mqtt.broker.port} |
| 259 | + |
| 260 | + # **GATEWAY** Authentication id (external key as assigned or auto generated at creation) |
| 261 | + user-name: ${gateway.identity.devicekey} |
| 262 | + # **GATEWAY** Authentication password |
| 263 | + password: ${private.mqtt.client.passwordoracle} |
| 264 | + |
| 265 | + # Optional connection settings |
| 266 | + clean-session: false |
| 267 | + automatic-reconnect: true |
| 268 | + connection-timeout: "PT30s" |
| 269 | + keep-alive-interval: 60 |
| 270 | + |
| 271 | + will-message: |
| 272 | + topic: home/homeassistantproxygateway/${gateway.identity.name} |
| 273 | + payload: Device ${gateway.identity.name} is unavailable |
| 274 | + qos: 0 |
| 275 | + retained: true |
0 commit comments