home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.58k stars 29.91k forks source link

Flo by Moen Not Reporting Data #91828

Closed hanley-development closed 1 year ago

hanley-development commented 1 year ago

The problem

Data for gallons used per day are not reporting. Currently an open unofficial issue with Moen. No KB article or known issues reported. It is known by their support staff, but have not made anything public at this time.

What version of Home Assistant Core has the issue?

core-2023.4.5

What was the last working version of Home Assistant Core?

core-2023.4.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

flo

Link to integration documentation on our website

https://www.home-assistant.io/integrations/flo/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Unexpected error fetching flo-6aa369d0-a4c9-48a9-9da6-a44f0cc03f5b data: unexpected character: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/components/flo/device.py", line 43, in _async_update_data
    await self.send_presence_ping()
  File "/usr/src/homeassistant/homeassistant/components/flo/device.py", line 192, in send_presence_ping
    await self.api_client.presence.ping()
  File "/usr/local/lib/python3.10/site-packages/aioflo/presence.py", line 16, in ping
    return await self._request("post", f"{API_V2_BASE}/presence/me")
  File "/usr/local/lib/python3.10/site-packages/aioflo/api.py", line 94, in _request
    data: dict = await resp.json(content_type=None)
  File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 67, in json
    return await super().json(*args, loads=loads, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1120, in json
    return loads(stripped.decode(encoding))
orjson.JSONDecodeError: unexpected character: line 1 column 1 (char 0)

Additional information

2023-04-21 11:03:07.656 DEBUG (MainThread) [homeassistant.components.flo] Flo device data: {'isConnected': True, 'fwVersion': '7.0.15', 'lastHeardFromTime': '2023-04-21T16:03:00Z', 'fwProperties': {'alarm_away_high_flow_rate_shut_off_enabled': True, 'alarm_away_high_water_use_shut_off_enabled': True, 'alarm_away_long_flow_event_shut_off_enabled': True, 'alarm_away_v2_shut_off_enabled': True, 'alarm_home_high_flow_rate_shut_off_deferment': 300, 'alarm_home_high_flow_rate_shut_off_enabled': True, 'alarm_home_high_water_use_shut_off_deferment': 300, 'alarm_home_high_water_use_shut_off_enabled': True, 'alarm_home_long_flow_event_shut_off_deferment': 300, 'alarm_home_long_flow_event_shut_off_enabled': True, 'alarm_shut_off_enabled': True, 'alarm_shutoff_id': '', 'alarm_shutoff_time_epoch_sec': -1, 'alarm_snooze_enabled': True, 'alarm_suppress_duplicate_duration': 300, 'alarm_suppress_until_event_end': False, 'data_flosense_first_launch_utc': '2023-04-17 16:04:04.737649', 'data_flosense_flodetect_hash': '8583ca9c8bdcf34fd321cb819cec0d23', 'data_flosense_force_retrain': 0, 'data_flosense_is_generic_model': 0, 'data_flosense_min_flodetect_sec': 0, 'data_flosense_min_irr_sec': 180, 'data_flosense_model_hash': 'be5683b5793b6784b2d6e9300d34bb12', 'data_flosense_pad_min': 2, 'data_flosense_retrain_op': 5, 'data_flosense_status_interval': 1200, 'data_flosense_suppress_reboot': 0, 'data_flosense_verbosity': 1, 'device_data_free_mb': 1588, 'device_data_mb': 1951, 'device_installed': True, 'device_mem_available_kb': 267964, 'device_rootfs_free_kb': 723080, 'device_timestamp': 1682061043, 'device_uptime_sec': 71471003, 'feature_mode': 'default', 'flodetect_post_enabled': True, 'flodetect_post_frequency': 0, 'flodetect_storage_days': 60, 'flosense_action': '', 'flosense_deployment_result': 'success', 'flosense_link': '', 'flosense_shut_off_enabled': True, 'flosense_shut_off_level': 2, 'flosense_state': 'active', 'flosense_version_app': '3.3.1', 'flosense_version_model': '3.3.16', 'fw_ver': '7.0.15', 'fw_ver_a': '7.0.15', 'fw_ver_b': '', 'heartbeat_frequency': 1800, 'ht_attempt_interval': 60000, 'ht_check_window_max_pressure_decay_limit': 0.1, 'ht_check_window_width': 30000, 'ht_ignore_flow_checking': False, 'ht_max_open_closed_pressure_decay_pct_limit': 2, 'ht_max_pressure_growth_limit': 3, 'ht_max_pressure_growth_pct_limit': 3, 'ht_max_valve_closures_per_24h': 3, 'ht_min_computable_point_limit': 3, 'ht_min_pressure_limit': 10, 'ht_min_r_squared_limit': 0.9, 'ht_min_slope_limit': -0.6, 'ht_phase_1_max_pressure_decay_limit': 6, 'ht_phase_1_max_pressure_decay_pct_limit': 10, 'ht_phase_1_time_index': 12000, 'ht_phase_2_max_pressure_decay_limit': 6, 'ht_phase_2_max_pressure_decay_pct_limit': 10, 'ht_phase_2_time_index': 30000, 'ht_phase_3_max_pressure_decay_limit': 3, 'ht_phase_3_max_pressure_decay_pct_limit': 5, 'ht_phase_3_time_index': 240000, 'ht_phase_4_max_pressure_decay_limit': 1.5, 'ht_phase_4_max_pressure_decay_pct_limit': 5, 'ht_phase_4_time_index': 480000, 'ht_pre_delay': 0, 'ht_recent_flow_event_cool_down': 1000, 'ht_retry_on_fail_interval': 900000, 'ht_scheduler_end': '05:00', 'ht_scheduler_start': '05:00', 'ht_scheduler_ultima_allotted_time_1': '10:00', 'ht_scheduler_ultima_allotted_time_2': '18:00', 'ht_scheduler_ultima_allotted_time_3': '02:00', 'ht_times_per_day': 1, 'log_bytes_sent': 0, 'log_enabled': True, 'log_frequency': 3600, 'log_send': False, 'mender_check': False, 'mender_host': 'https://mender.flotech.co', 'mender_parts_link': '', 'mender_ping_delay': 300, 'mender_signature': '', 'motor_delay_close': 175, 'motor_delay_open': 0, 'motor_retry_count': 2, 'motor_timeout': 5000, 'mqtt_host': 'mqtt.flosecurecloud.com', 'mqtt_port': 8884, 'pes_away_max_duration': 3600, 'pes_away_max_pressure': 150, 'pes_away_max_temperature': 226, 'pes_away_max_volume': 50, 'pes_away_min_pressure': 20, 'pes_away_min_pressure_duration': 5, 'pes_away_min_temperature': 36, 'pes_away_min_temperature_duration': 10, 'pes_away_v1_high_flow_rate': 8, 'pes_away_v1_high_flow_rate_duration': 5, 'pes_away_v2_high_flow_rate': 0.5, 'pes_away_v2_high_flow_rate_duration': 5, 'pes_home_high_flow_rate': 1000, 'pes_home_high_flow_rate_duration': 20, 'pes_home_max_duration': 13063, 'pes_home_max_pressure': 150, 'pes_home_max_temperature': 226, 'pes_home_max_volume': 105, 'pes_home_min_pressure': 20, 'pes_home_min_pressure_duration': 5, 'pes_home_min_pressure_resolve': 25, 'pes_home_min_pressure_resolve_duration': 5, 'pes_home_min_temperature': 36, 'pes_home_min_temperature_duration': 10, 'pes_home_min_temperature_resolve': 40, 'pes_home_min_temperature_resolve_duration': 10, 'pes_moderately_high_pressure': 80, 'pes_moderately_high_pressure_count': 43200, 'pes_moderately_high_pressure_delay': 300, 'pes_moderately_high_pressure_period': 10, 'player_action': 'disabled', 'player_flow': 0, 'player_min_pressure': 40, 'player_pressure': 60, 'player_temperature': 50, 'power_downtime_last_24h': 158, 'power_downtime_last_7days': 994, 'power_downtime_last_reboot': 78, 'pt_state': 'ok', 'reboot_count': 14, 'reboot_count_7days': 3, 'reboot_reason': 'directive', 's3_bucket_host': 'api-bulk.meetflo.com', 'serial_number': '', 'system_mode': 2, 'tag': '', 'telemetry_batched_enabled': True, 'telemetry_batched_hf_enabled': True, 'telemetry_batched_hf_interval': 10800, 'telemetry_batched_hf_poll_rate': 100, 'telemetry_batched_interval': 300, 'telemetry_batched_pending_storage': 30, 'telemetry_batched_sent_storage': 30, 'telemetry_flow_rate': 0, 'telemetry_pressure': 70.7, 'telemetry_realtime_change_gpm': 0, 'telemetry_realtime_change_psi': 0, 'telemetry_realtime_enabled': True, 'telemetry_realtime_interval': 1, 'telemetry_realtime_packet_uptime': 251, 'telemetry_realtime_session_last_epoch': 1681861319362, 'telemetry_realtime_sessions_7days': 26, 'telemetry_realtime_timeout': 299, 'telemetry_temperature': 81, 'valve_actuation_count': 885, 'valve_actuation_timeout_count': 0, 'valve_state': 1, 'vpn_enabled': False, 'vpn_ip': '', 'water_event_enabled': True, 'water_event_min_duration': 2, 'water_event_min_gallons': 0.1, 'wifi_bytes_received': 119788, 'wifi_bytes_sent': 124521, 'wifi_disconnections': 219, 'wifi_rssi': -47, 'wifi_sta_country': 'us', 'wifi_sta_enc': 'psk2', 'wifi_sta_ip': '192.168.20.92', 'wifi_sta_ssid': 'FBI Van 25 IoT', 'zit_auto_count': 0, 'zit_manual_count': 3}, 'id': '6aa369d0-a4c9-48a9-9da6-a44f0cc03f5b', 'macAddress': '48701e066fc4', 'nickname': 'Water Monitor', 'isPaired': True, 'deviceModel': 'flo_device_100_v2', 'deviceType': 'flo_device_v2', 'irrigationType': 'not_plumbed', 'prvInstallation': 'before', 'purchaseLocation': 'plumber', 'systemMode': {'isLocked': False, 'shouldInherit': True, 'lastKnown': 'home', 'target': 'home'}, 'valve': {'target': 'open', 'lastKnown': 'open'}, 'installStatus': {'isInstalled': True, 'installDate': '2022-05-09T16:32:21.316Z'}, 'learning': {'outOfLearningDate': '2022-05-16T16:23:37.024Z', 'enabled': False}, 'notifications': {'pending': {'infoCount': 0, 'warningCount': 0, 'criticalCount': 0, 'alarmCount': [], 'info': {'count': 0, 'devices': {'count': 0, 'absolute': 0}}, 'warning': {'count': 0, 'devices': {'count': 0, 'absolute': 0}}, 'critical': {'count': 0, 'devices': {'count': 0, 'absolute': 0}}}}, 'hardwareThresholds': {'gpm': {'okMin': 0, 'okMax': 29, 'minValue': 0, 'maxValue': 35}, 'psi': {'okMin': 30, 'okMax': 80, 'minValue': 0, 'maxValue': 100}, 'lpm': {'okMin': 0, 'okMax': 110, 'minValue': 0, 'maxValue': 130}, 'kPa': {'okMin': 210, 'okMax': 550, 'minValue': 0, 'maxValue': 700}, 'tempF': {'okMin': 50, 'okMax': 80, 'minValue': 0, 'maxValue': 100}, 'tempC': {'okMin': 10, 'okMax': 30, 'minValue': 0, 'maxValue': 40}}, 'connectivity': {'rssi': -47, 'ssid': 'FBI Van 25 IoT'}, 'telemetry': {'current': {'gpm': 0, 'psi': 70, 'tempF': 79, 'updated': '2023-04-21T16:03:06Z'}}, 'healthTest': {'config': {'enabled': True, 'timesPerDay': 1, 'start': '00:00', 'end': '00:00'}}, 'shutoff': {'scheduledAt': '1970-01-01T00:00:00.000Z'}, 'actionRules': [], 'location': {'id': '7732737d-8bc4-47d4-88b2-5fbe4fa519e0'}} 2023-04-21 11:03:07.887 DEBUG (MainThread) [homeassistant.components.flo] Updated Flo consumption data: {'params': {'startDate': '2023-04-21T05:00:00.000Z', 'endDate': '2023-04-22T04:59:59.999Z', 'interval': '1h', 'tz': 'US/Central', 'locationId': '7732737d-8bc4-47d4-88b2-5fbe4fa519e0'}, 'aggregations': {'sumTotalGallonsConsumed': 1.709}, 'items': [{'time': '2023-04-21T00:00:00-05:00', 'gallonsConsumed': 0}, {'time': '2023-04-21T01:00:00-05:00', 'gallonsConsumed': 0}, {'time': '2023-04-21T02:00:00-05:00', 'gallonsConsumed': 0}, {'time': '2023-04-21T03:00:00-05:00', 'gallonsConsumed': 0}, {'time': '2023-04-21T04:00:00-05:00', 'gallonsConsumed': 0}, {'time': '2023-04-21T05:00:00-05:00', 'gallonsConsumed': 0}, {'time': '2023-04-21T06:00:00-05:00', 'gallonsConsumed': 0}, {'time': '2023-04-21T07:00:00-05:00', 'gallonsConsumed': 0}, {'time': '2023-04-21T08:00:00-05:00', 'gallonsConsumed': 0}, {'time': '2023-04-21T09:00:00-05:00', 'gallonsConsumed': 0}, {'time': '2023-04-21T10:00:00-05:00', 'gallonsConsumed': 1.709}, {'time': '2023-04-21T11:00:00-05:00', 'gallonsConsumed': 0}]} 2023-04-21 11:03:07.887 DEBUG (MainThread) [homeassistant.components.flo] Finished fetching flo-6aa369d0-a4c9-48a9-9da6-a44f0cc03f5b data in 0.640 seconds (success: True)

home-assistant[bot] commented 1 year ago

Hey there @dmulcahey, mind taking a look at this issue as it has been labeled with an integration (flo) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `flo` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign flo` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


flo documentation flo source (message by IssueLinks)

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.