I have a D1 mini with two PZEM-004T attached. They display the Voltage, Watts, Ect. just fine. The lovelace has graph line setup in the config but it does not display correctly. Here is my config and some screenshots.
2020-06-21 12:41:55 ERROR (MainThread) [homeassistant.components.roku] Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device
2020-06-21 12:42:04 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.tv_power is taking over 10 seconds
2020-06-21 22:12:05 ERROR (MainThread) [homeassistant.components.roku] Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device
2020-06-21 22:12:22 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.tv_power is taking over 10 seconds
2020-06-22 21:31:58 ERROR (MainThread) [homeassistant.components.roku] Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device
2020-06-22 21:32:08 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.tv_power is taking over 10 seconds
2020-06-22 21:32:29 WARNING (MainThread) [homeassistant.components.switch] Updating command_line switch took longer than the scheduled update interval 0:00:30
2020-06-23 08:50:40 ERROR (SyncWorker_15) [homeassistant.components.honeywell.climate] SomeComfort update failed, Retrying - Error: You are being rate-limited. Try waiting a bit.
2020-06-23 08:50:43 ERROR (SyncWorker_19) [homeassistant.components.honeywell.climate] SomeComfort update failed, Retrying - Error: You are being rate-limited. Try waiting a bit.
2020-06-23 17:35:11 ERROR (MainThread) [homeassistant.components.roku] Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device
2020-06-23 17:35:11 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.tv_power is taking over 10 seconds
2020-06-23 17:35:32 WARNING (MainThread) [homeassistant.components.switch] Updating command_line switch took longer than the scheduled update interval 0:00:30
2020-06-23 20:33:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.tv_power is taking over 10 seconds
2020-06-23 20:33:26 ERROR (MainThread) [homeassistant.components.roku] Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device
2020-06-23 20:33:45 WARNING (MainThread) [homeassistant.components.switch] Updating command_line switch took longer than the scheduled update interval 0:00:30
2020-06-24 19:08:21 ERROR (MainThread) [homeassistant.components.roku] Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device
2020-06-24 19:08:25 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.tv_power is taking over 10 seconds
2020-06-24 19:08:46 WARNING (MainThread) [homeassistant.components.switch] Updating command_line switch took longer than the scheduled update interval 0:00:30
2020-06-24 22:06:54 ERROR (MainThread) [homeassistant.components.roku] Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device
2020-06-24 22:07:10 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.tv_power is taking over 10 seconds
2020-06-24 22:07:31 WARNING (MainThread) [homeassistant.components.switch] Updating command_line switch took longer than the scheduled update interval 0:00:30
2020-06-24 23:26:39 ERROR (SyncWorker_0) [homeassistant.components.darksky.weather] Unable to connect to Dark Sky. HTTPSConnectionPool(host='api.darksky.net', port=443): Max retries exceeded with url: /forecast/313e78d3085f54f49c187a42858982b9/42.629799,-89.070285?units=us&lang=en (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6c477ad0>: Failed to establish a new connection: [Errno -3] Try again'))
2020-06-24 23:34:37 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.floor_heat is taking over 10 seconds
2020-06-24 23:34:59 ERROR (SyncWorker_0) [homeassistant.components.honeywell.climate] SomeComfort update failed, Retrying - Error: HTTPSConnectionPool(host='www.mytotalconnectcomfort.com', port=443): Read timed out. (read timeout=30)
2020-06-24 23:35:10 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.furnace is taking over 10 seconds
2020-06-24 23:35:32 ERROR (SyncWorker_16) [homeassistant.components.honeywell.climate] SomeComfort update failed, Retrying - Error: HTTPSConnectionPool(host='www.mytotalconnectcomfort.com', port=443): Read timed out. (read timeout=30)
2020-06-25 10:44:50 ERROR (MainThread) [homeassistant.components.roku] Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device
2020-06-25 10:44:58 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.tv_power is taking over 10 seconds
2020-06-25 15:11:49 ERROR (MainThread) [homeassistant.components.roku] Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device
2020-06-25 22:33:40 ERROR (MainThread) [homeassistant.components.roku] Error fetching roku data: Invalid response from API: Timeout occurred while connecting to device
2020-06-25 22:33:42 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.tv_power is taking over 10 seconds
2020-06-25 22:34:03 WARNING (MainThread) [homeassistant.components.switch] Updating command_line switch took longer than the scheduled update interval 0:00:30
20-06-26 11:19:56 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-06-26 11:19:56 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-06-26 11:59:55 INFO (MainThread) [supervisor.snapshots] Found 6 snapshot files
20-06-26 11:59:55 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-06-26 12:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
20-06-26 12:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-06-26 12:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/korylprince/hassio-apcupsd repository
20-06-26 12:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository-edge repository
20-06-26 12:59:56 INFO (MainThread) [supervisor.store] Load add-ons from store: 114 all - 0 new - 0 remove
20-06-26 13:26:35 INFO (MainThread) [supervisor.host.info] Update local host information
20-06-26 13:26:35 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-06-26 13:26:36 INFO (MainThread) [supervisor.host.services] Update service information
20-06-26 13:26:36 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-06-26 13:26:36 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-06-26 13:26:36 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-06-26 13:26:36 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-06-26 13:59:55 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-06-26 15:33:15 INFO (MainThread) [supervisor.host.info] Update local host information
20-06-26 15:33:15 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-06-26 15:33:16 INFO (MainThread) [supervisor.host.services] Update service information
20-06-26 15:33:16 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-06-26 15:33:16 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-06-26 15:33:16 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-06-26 15:33:16 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-06-26 15:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
20-06-26 15:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/korylprince/hassio-apcupsd repository
20-06-26 15:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository-edge repository
20-06-26 15:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-06-26 15:59:55 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-06-26 15:59:56 INFO (MainThread) [supervisor.store] Load add-ons from store: 114 all - 0 new - 0 remove
20-06-26 17:39:55 INFO (MainThread) [supervisor.host.info] Update local host information
20-06-26 17:39:55 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-06-26 17:39:56 INFO (MainThread) [supervisor.host.services] Update service information
20-06-26 17:39:56 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-06-26 17:39:56 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-06-26 17:39:56 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-06-26 17:39:56 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-06-26 17:59:55 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-06-26 18:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-06-26 18:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
20-06-26 18:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/korylprince/hassio-apcupsd repository
20-06-26 18:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository-edge repository
20-06-26 18:59:57 INFO (MainThread) [supervisor.store] Load add-ons from store: 114 all - 0 new - 0 remove
20-06-26 19:46:35 INFO (MainThread) [supervisor.host.info] Update local host information
20-06-26 19:46:35 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-06-26 19:46:36 INFO (MainThread) [supervisor.host.services] Update service information
20-06-26 19:46:36 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-06-26 19:46:36 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-06-26 19:46:36 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-06-26 19:46:36 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-06-26 19:59:55 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-06-26 21:53:15 INFO (MainThread) [supervisor.host.info] Update local host information
20-06-26 21:53:15 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-06-26 21:53:16 INFO (MainThread) [supervisor.host.services] Update service information
20-06-26 21:53:16 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-06-26 21:53:16 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-06-26 21:53:16 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-06-26 21:53:16 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-06-26 21:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-06-26 21:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository-edge repository
20-06-26 21:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/korylprince/hassio-apcupsd repository
20-06-26 21:59:55 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
20-06-26 21:59:55 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-06-26 21:59:56 INFO (MainThread) [supervisor.store] Load add-ons from store: 114 all - 0 new - 0 remove
20-06-26 22:46:18 INFO (MainThread) [supervisor.homeassistant] Updated Home Assistant API token
20-06-26 23:29:38 INFO (MainThread) [supervisor.homeassistant] Updated Home Assistant API token
20-06-26 23:59:55 INFO (MainThread) [supervisor.host.info] Update local host information
20-06-26 23:59:55 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-06-26 23:59:55 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-06-26 23:59:56 INFO (MainThread) [supervisor.host.services] Update service information
20-06-26 23:59:56 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-06-26 23:59:56 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-06-26 23:59:56 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-06-26 23:59:56 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-06-27 00:26:31 INFO (SyncWorker_8) [supervisor.docker.interface] Stop addon_core_ssh application
20-06-27 00:26:37 INFO (SyncWorker_8) [supervisor.docker.interface] Clean addon_core_ssh application
20-06-27 00:26:40 INFO (SyncWorker_7) [supervisor.docker.addon] Start Docker add-on homeassistant/armv7-addon-ssh with version 8.6.0
20-06-27 00:30:47 INFO (SyncWorker_5) [supervisor.docker.interface] Stop addon_core_ssh application
20-06-27 00:30:52 INFO (SyncWorker_5) [supervisor.docker.interface] Clean addon_core_ssh application
20-06-27 00:30:52 WARNING (SyncWorker_11) [supervisor.docker.interface] Can't grep logs from homeassistant/armv7-addon-ssh: 404 Client Error: Not Found ("No such container: ca1abd27434d34164911a17e640aced73968f72973d35bf0ae66550e90056a7b")
20-06-27 00:30:54 INFO (SyncWorker_14) [supervisor.docker.addon] Start Docker add-on homeassistant/armv7-addon-ssh with version 8.6.0
20-06-27 00:30:55 INFO (SyncWorker_12) [supervisor.docker.interface] Stop addon_core_ssh application
20-06-27 00:31:04 INFO (SyncWorker_12) [supervisor.docker.interface] Clean addon_core_ssh application
20-06-27 00:31:07 INFO (SyncWorker_3) [supervisor.docker.addon] Start Docker add-on homeassistant/armv7-addon-ssh with version 8.6.0
20-06-27 00:31:49 INFO (SyncWorker_5) [supervisor.docker.interface] Stop addon_core_ssh application
20-06-27 00:31:52 ERROR (MainThread) [supervisor.utils] Can't execute stop while a task is in progress
20-06-27 00:31:52 WARNING (MainThread) [supervisor.addons.addon] core_ssh already running!
20-06-27 00:31:54 INFO (SyncWorker_5) [supervisor.docker.interface] Clean addon_core_ssh application
20-06-27 00:31:54 ERROR (MainThread) [supervisor.utils] Can't execute stop while a task is in progress
20-06-27 00:31:54 ERROR (MainThread) [supervisor.utils] Can't execute run while a task is in progress
20-06-27 00:31:56 INFO (SyncWorker_11) [supervisor.docker.addon] Start Docker add-on homeassistant/armv7-addon-ssh with version 8.6.0
20-06-27 00:31:58 WARNING (MainThread) [supervisor.addons.addon] core_ssh already running!
20-06-27 00:31:59 ERROR (MainThread) [supervisor.api.security] Invalid token for access /addons/self/info
20-06-27 00:32:23 INFO (SyncWorker_1) [supervisor.docker.interface] Stop addon_core_ssh application
20-06-27 00:32:28 INFO (SyncWorker_1) [supervisor.docker.interface] Clean addon_core_ssh application
20-06-27 00:32:38 INFO (SyncWorker_0) [supervisor.docker.addon] Start Docker add-on homeassistant/armv7-addon-ssh with version 8.6.0
20-06-27 00:33:00 INFO (MainThread) [supervisor.api.security] /core/logs access from core_ssh
20-06-27 00:34:30 INFO (MainThread) [supervisor.api.security] /supervisor/logs access from core_ssh
20-06-27 00:36:43 INFO (SyncWorker_19) [supervisor.docker.interface] Stop addon_core_ssh application
20-06-27 00:36:47 INFO (SyncWorker_19) [supervisor.docker.interface] Clean addon_core_ssh application
The values on the top right in your graph look like a string rather than a numeric value.
I am not sure if it’s a notational difference in your country but is 367, 698 W supposed to mean 367.698 W?
You can try changing your value template to convert the string into a float or an int after which the graph will work just fine…
Better still, use the automated MQTT integration so that you don’t have to mess around with the value templates manually