I did it
packages/irrigation.yaml
wb_irrigation:
api_key: !secret openweathermap_key
rain_factor: 90
max_ev: 3000
min_ev: -1500.0
name: "wb_irrigation"
debug: true
longitude: !secret accurate_longitude
latitude: !secret accurate_latitude
elevation: !secret accurate_elevation
taps:
- name: p1_front
- name: p2_bok
- name: p3_taras1
- name: p4_taras2
- name: p5_wykusz
- name: p6_wyspa
- name: p7_tujki_l
- name: p8_tujki_p
but no change in home-assistant.log
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'friendly_name': 'wb_irrigation_rain', 'unit_of_measurement': 'mm'}
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'friendly_name': 'wb_irrigation_rain_day', 'rain_total': 0.0, 'unit_of_measurement': 'mm'}
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'fao56': 536.3, 'friendly_name': 'wb_irrigation_fao56', 'unit_of_measurement': 'ev'}
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'friendly_name': 'wb_irrigation_p1_front', 'unit_of_measurement': 'ev'}
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'friendly_name': 'wb_irrigation_p2_bok', 'unit_of_measurement': 'ev'}
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'friendly_name': 'wb_irrigation_p3_taras1', 'unit_of_measurement': 'ev'}
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'friendly_name': 'wb_irrigation_p4_taras2', 'unit_of_measurement': 'ev'}
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'friendly_name': 'wb_irrigation_p5_wykusz', 'unit_of_measurement': 'ev'}
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'friendly_name': 'wb_irrigation_p6_wyspa', 'unit_of_measurement': 'ev'}
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'friendly_name': 'wb_irrigation_p7_tujki_L', 'unit_of_measurement': 'ev'}
2020-04-12 22:08:19 INFO (MainThread) [custom_components.wb_irrigation.sensor] wbi async_added_to_hass {'friendly_name': 'wb_irrigation_p8_tujki_P', 'unit_of_measurement': 'ev'}
just in case my configuration.yaml
homeassistant:
auth_mfa_modules:
- type: totp
whitelist_external_dirs:
- /config
- /config/sh
packages: !include_dir_named packages
customize: !include customize.yaml
logger:
default: error
logs:
custom_components.wb_irrigation: debug
I tried to turn on debug on default hassio level ā¦ got trylion of lines but when searched for string fao got plenty of those:
020-04-12 22:23:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.sensor, platform=wb_irrigation, discovered=api_key=XXXXX, rain_factor=90.0, max_ev=3000.0, min_ev=-1500.0, name=wb_irrigation_fao56, debug=True, longitude=XXXXX, latitude=XXXXX, elevation=180, taps=[OrderedDict([('name', 'p1_front')]), OrderedDict([('name', 'p2_bok')]), OrderedDict([('name', 'p3_taras1')]), OrderedDict([('name', 'p4_taras2')]), OrderedDict([('name', 'p5_wykusz')]), OrderedDict([('name', 'p6_wyspa')]), OrderedDict([('name', 'p7_tujki_l')]), OrderedDict([('name', 'p8_tujki_p')])], unit_of_measurement=ev, type=fao56>
...
2020-04-12 22:23:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.sensor, platform=wb_irrigation, discovered=api_key=XXXXX, rain_factor=90.0, max_ev=3000.0, min_ev=-1500.0, name=wb_irrigation_p7_tujki_l, debug=True, longitude=XXXXX, latitude=XXXXX, elevation=180, taps=[OrderedDict([('name', 'p1_front')]), OrderedDict([('name', 'p2_bok')]), OrderedDict([('name', 'p3_taras1')]), OrderedDict([('name', 'p4_taras2')]), OrderedDict([('name', 'p5_wykusz')]), OrderedDict([('name', 'p6_wyspa')]), OrderedDict([('name', 'p7_tujki_l')]), OrderedDict([('name', 'p8_tujki_p')])], unit_of_measurement=ev, type=bucket, fao56=sensor.wb_irrigation_fao56, rain=sensor.wb_irrigation_rain_day>
...
2020-04-12 22:23:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.wb_irrigation_fao56, old_state=None, new_state=<state sensor.wb_irrigation_fao56=0.0; fao56=536.3, unit_of_measurement=ev, friendly_name=wb_irrigation_fao56 @ 2020-04-12T22:23:50.369421+02:00>>
of course real data hidden behind XXXXX
I havenāt found anything for string āopenweatherā¦ā or error which I could connect in any manner to fao sensor.
Further, openweathermap_key string in this debug log I found only in lines provided above.
Maybe this is a hint somehow ?
another thing Iāve found in log:
2020-04-12 22:23:55 WARNING (MainThread) [homeassistant.helpers.service] Unable to find services.yaml for the wb_irrigation integration
2020-04-12 22:23:55 WARNING (MainThread) [homeassistant.helpers.service] Unable to find services.yaml for the variable integration
but those are just warnings not errors ā¦
other logs but seems nothing special ā¦
2020-04-12 22:23:58 DEBUG (SyncWorker_5) [homeassistant.util.json] JSON file not found: /config/custom_components/wb_irrigation/.translations/en.json
2020-04-12 22:23:58 DEBUG (SyncWorker_5) [homeassistant.util.json] JSON file not found: /config/custom_components/wb_irrigation/.translations/sensor.en.json
sic! ā¦ I must be doing something wrong here for sure this is some super silly mistake but where ā¦