Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working: Smart Meter Electricity: Cost (Today) sensor.smart_meter_electricity_cost_today #68

Open
VinneyUK opened this issue Jan 11, 2025 · 0 comments

Comments

@VinneyUK
Copy link

VinneyUK commented Jan 11, 2025

Firstly thank you developer for this addon.

All but the following entity isn't working: sensor.smart_meter_electricity_cost_today

The gas equivalent works fine.

Any ideas how i fix this please?

This is the log:

`Logger: homeassistant.util.logging
Source: util/logging.py:95
First occurred: 13:32:25 (189 occurrences)
Last logged: 14:03:45

Exception in mqtt_message_received when handling msg on 'glow/BCDDC2C51398/SENSOR/electricitymeter': '{"electricitymeter":{"timestamp":"2025-01-11T14:02:11Z","energy":{"export":{"cumulative":0.000,"units":"kWh"},"import":{"cumulative":8278.018,"day":8.341,"week":188.758,"month":291.662,"units":"kWh","mpan":"2199993942931","supplier":"---","price":{"unitrate":0.25300,"standingcharge":null}}},"power":{"value":0.400,"units":"kW"}}}' Traceback (most recent call last): File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 330, in mqtt_message_received updateGroup.process_update(message) ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 393, in process_update sensor.process_update(parsed_data) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 480, in process_update new_value = self._func(mqtt_data) File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 175, in js["electricitymeter"]["energy"]["import"]["price"]["standingcharge"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ( ^~~ js["electricitymeter"]["energy"]["import"]["day"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * js["electricitymeter"]["energy"]["import"]["price"]["unitrate"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ), ~ TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'
Exception in mqtt_message_received when handling msg on 'glow/BCDDC2C51398/SENSOR/electricitymeter': '{"electricitymeter":{"timestamp":"2025-01-11T14:02:31Z","energy":{"export":{"cumulative":0.000,"units":"kWh"},"import":{"cumulative":8278.020,"day":8.343,"week":188.761,"month":291.665,"units":"kWh","mpan":"2199993942931","supplier":"---","price":{"unitrate":0.25300,"standingcharge":null}}},"power":{"value":0.377,"units":"kW"}}}' Traceback (most recent call last): File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 330, in mqtt_message_received updateGroup.process_update(message) ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 393, in process_update sensor.process_update(parsed_data) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 480, in process_update new_value = self._func(mqtt_data) File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 175, in js["electricitymeter"]["energy"]["import"]["price"]["standingcharge"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ( ^~~ js["electricitymeter"]["energy"]["import"]["day"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * js["electricitymeter"]["energy"]["import"]["price"]["unitrate"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ), ~ TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'
Exception in mqtt_message_received when handling msg on 'glow/BCDDC2C51398/SENSOR/electricitymeter': '{"electricitymeter":{"timestamp":"2025-01-11T14:02:51Z","energy":{"export":{"cumulative":0.000,"units":"kWh"},"import":{"cumulative":8278.022,"day":8.346,"week":188.763,"month":291.667,"units":"kWh","mpan":"2199993942931","supplier":"---","price":{"unitrate":0.25300,"standingcharge":null}}},"power":{"value":0.380,"units":"kW"}}}' Traceback (most recent call last): File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 330, in mqtt_message_received updateGroup.process_update(message) ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 393, in process_update sensor.process_update(parsed_data) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 480, in process_update new_value = self._func(mqtt_data) File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 175, in js["electricitymeter"]["energy"]["import"]["price"]["standingcharge"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ( ^~~ js["electricitymeter"]["energy"]["import"]["day"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * js["electricitymeter"]["energy"]["import"]["price"]["unitrate"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ), ~ TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'
Exception in mqtt_message_received when handling msg on 'glow/BCDDC2C51398/SENSOR/electricitymeter': '{"electricitymeter":{"timestamp":"2025-01-11T14:03:11Z","energy":{"export":{"cumulative":0.000,"units":"kWh"},"import":{"cumulative":8278.024,"day":8.348,"week":188.765,"month":291.669,"units":"kWh","mpan":"2199993942931","supplier":"---","price":{"unitrate":0.25300,"standingcharge":null}}},"power":{"value":0.389,"units":"kW"}}}' Traceback (most recent call last): File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 330, in mqtt_message_received updateGroup.process_update(message) ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 393, in process_update sensor.process_update(parsed_data) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 480, in process_update new_value = self._func(mqtt_data) File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 175, in js["electricitymeter"]["energy"]["import"]["price"]["standingcharge"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ( ^~~ js["electricitymeter"]["energy"]["import"]["day"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * js["electricitymeter"]["energy"]["import"]["price"]["unitrate"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ), ~ TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'
Exception in mqtt_message_received when handling msg on 'glow/BCDDC2C51398/SENSOR/electricitymeter': '{"electricitymeter":{"timestamp":"2025-01-11T14:03:31Z","energy":{"export":{"cumulative":0.000,"units":"kWh"},"import":{"cumulative":8278.026,"day":8.350,"week":188.767,"month":291.671,"units":"kWh","mpan":"2199993942931","supplier":"---","price":{"unitrate":0.25300,"standingcharge":null}}},"power":{"value":0.396,"units":"kW"}}}' Traceback (most recent call last): File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 330, in mqtt_message_received updateGroup.process_update(message) ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 393, in process_update sensor.process_update(parsed_data) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 480, in process_update new_value = self._func(mqtt_data) File "/config/custom_components/hildebrand_glow_ihd/sensor.py", line 175, in js["electricitymeter"]["energy"]["import"]["price"]["standingcharge"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ( ^~~ js["electricitymeter"]["energy"]["import"]["day"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * js["electricitymeter"]["energy"]["import"]["price"]["unitrate"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ), ~ TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant