Closed michalzxc closed 1 year ago
Hey, it is me again 😂 😄
Today I flashed Emporia Vue with esphome - https://github.com/emporia-vue-local/esphome
And I managed to get it in mqtt:
Topic:
emporiavue2/sensor/circuit_3_power/state
Value is a raw number with energy usage
In the form you are using:
topic '<prefix>/sensor/<name>/state' '20.00'
I don't see it on output, but I see the topics are being counted:
# HELP python_gc_objects_collected_total Objects collected during gc # TYPE python_gc_objects_collected_total counter python_gc_objects_collected_total{generation="0"} 1.39416e+06 python_gc_objects_collected_total{generation="1"} 125827.0 python_gc_objects_collected_total{generation="2"} 1656.0 # HELP python_gc_objects_uncollectable_total Uncollectable objects found during GC # TYPE python_gc_objects_uncollectable_total counter python_gc_objects_uncollectable_total{generation="0"} 0.0 python_gc_objects_uncollectable_total{generation="1"} 0.0 python_gc_objects_uncollectable_total{generation="2"} 0.0 # HELP python_gc_collections_total Number of times this generation was collected # TYPE python_gc_collections_total counter python_gc_collections_total{generation="0"} 1660.0 python_gc_collections_total{generation="1"} 150.0 python_gc_collections_total{generation="2"} 2.0 # HELP python_info Python platform information # TYPE python_info gauge python_info{implementation="CPython",major="3",minor="10",patchlevel="12",version="3.10.12"} 1.0 # HELP process_virtual_memory_bytes Virtual memory size in bytes. # TYPE process_virtual_memory_bytes gauge process_virtual_memory_bytes 2.7521024e+07 # HELP process_resident_memory_bytes Resident memory size in bytes. # TYPE process_resident_memory_bytes gauge process_resident_memory_bytes 1.9939328e+07 # HELP process_start_time_seconds Start time of the process since unix epoch in seconds. # TYPE process_start_time_seconds gauge process_start_time_seconds 1.68814506766e+09 # HELP process_cpu_seconds_total Total user and system CPU time spent in seconds. # TYPE process_cpu_seconds_total counter process_cpu_seconds_total 151.46 # HELP process_open_fds Number of open file descriptors. # TYPE process_open_fds gauge process_open_fds 8.0 # HELP process_max_fds Maximum number of open file descriptors. # TYPE process_max_fds gauge process_max_fds 1.048576e+06 # HELP mqtt_message_total Counter of received messages # TYPE mqtt_message_total counter mqtt_message_total{topic="hubitat_home-hub_bedroom button aircon"} 54.0 mqtt_message_total{topic="hubitat_home-hub_bedroom light"} 39.0 mqtt_message_total{topic="hubitat_home-hub_big desk button monitors"} 54.0 mqtt_message_total{topic="hubitat_home-hub_pc power switch"} 5897.0 mqtt_message_total{topic="hubitat_home-hub_living room main light"} 43.0 mqtt_message_total{topic="glow_C4DD57D80A24_STATE"} 8693.0 mqtt_message_total{topic="glow_C4DD57D80A24_SENSOR_electricitymeter"} 8688.0 mqtt_message_total{topic="hubitat_home-hub_bedroom light strip"} 2.0 mqtt_message_total{topic="homeassistant_button_emporiavue2_two_beeps_config"} 8.0 mqtt_message_total{topic="homeassistant_light_emporiavue2_d3_led_config"} 8.0 mqtt_message_total{topic="emporiavue2_light_d3_led_state"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_phase_a_voltage_config"} 8.0 mqtt_message_total{topic="esphome_discover_emporiavue2"} 8.0 mqtt_message_total{topic="emporiavue2_sensor"} 112473.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_phase_a_frequency_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_phase_a_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_phase_a_power_return_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_1_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_2_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_3_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_4_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_5_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_6_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_7_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_8_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_9_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_10_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_11_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_12_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_13_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_14_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_15_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_16_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_total_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_total_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_balance_power_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_balance_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_total_power_return_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_total_daily_energy_return_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_1_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_2_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_3_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_4_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_5_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_6_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_7_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_8_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_9_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_10_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_11_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_12_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_13_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_14_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_15_daily_energy_config"} 8.0 mqtt_message_total{topic="homeassistant_sensor_emporiavue2_circuit_16_daily_energy_config"} 8.0 mqtt_message_total{topic="hubitat_home-hub_heartbeat"} 612.0 # HELP mqtt_message_created Counter of received messages # TYPE mqtt_message_created gauge mqtt_message_created{topic="hubitat_home-hub_bedroom button aircon"} 1.6881450690604203e+09 mqtt_message_created{topic="hubitat_home-hub_bedroom light"} 1.6881450690609236e+09 mqtt_message_created{topic="hubitat_home-hub_big desk button monitors"} 1.688145069061259e+09 mqtt_message_created{topic="hubitat_home-hub_pc power switch"} 1.688145069062229e+09 mqtt_message_created{topic="hubitat_home-hub_living room main light"} 1.6881450691002738e+09 mqtt_message_created{topic="glow_C4DD57D80A24_STATE"} 1.6881450716572747e+09 mqtt_message_created{topic="glow_C4DD57D80A24_SENSOR_electricitymeter"} 1.6881450716623971e+09 mqtt_message_created{topic="hubitat_home-hub_bedroom light strip"} 1.688208620907931e+09 mqtt_message_created{topic="homeassistant_button_emporiavue2_two_beeps_config"} 1.688221654495132e+09 mqtt_message_created{topic="homeassistant_light_emporiavue2_d3_led_config"} 1.688221654501135e+09 mqtt_message_created{topic="emporiavue2_light_d3_led_state"} 1.68822165450141e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_phase_a_voltage_config"} 1.6882216545107183e+09 mqtt_message_created{topic="esphome_discover_emporiavue2"} 1.6882216545444884e+09 mqtt_message_created{topic="emporiavue2_sensor"} 1.688221654544677e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_phase_a_frequency_config"} 1.688221654544888e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_phase_a_power_config"} 1.6882216545452168e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_phase_a_power_return_config"} 1.6882216545454895e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_1_power_config"} 1.6882216545507493e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_2_power_config"} 1.6882216545511165e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_3_power_config"} 1.6882216545766337e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_4_power_config"} 1.688221654576937e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_5_power_config"} 1.6882216545772138e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_6_power_config"} 1.688221654591104e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_7_power_config"} 1.688221654591468e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_8_power_config"} 1.6882216546098795e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_9_power_config"} 1.6882216546101801e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_10_power_config"} 1.6882216546105118e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_11_power_config"} 1.6882216546158414e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_12_power_config"} 1.6882216546337502e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_13_power_config"} 1.6882216546340964e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_14_power_config"} 1.6882216546343696e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_15_power_config"} 1.688221654640501e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_16_power_config"} 1.6882216546408718e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_total_power_config"} 1.688221654662191e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_total_daily_energy_config"} 1.6882216546624844e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_balance_power_config"} 1.6882216546627667e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_balance_daily_energy_config"} 1.6882216546718016e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_total_power_return_config"} 1.688221654692498e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_total_daily_energy_return_config"} 1.688221654692848e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_1_daily_energy_config"} 1.688221654693142e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_2_daily_energy_config"} 1.6882216546976118e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_3_daily_energy_config"} 1.6882216546979318e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_4_daily_energy_config"} 1.688221654718868e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_5_daily_energy_config"} 1.688221654719283e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_6_daily_energy_config"} 1.6882216547263021e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_7_daily_energy_config"} 1.6882216547268195e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_8_daily_energy_config"} 1.688221654749463e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_9_daily_energy_config"} 1.6882216547498114e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_10_daily_energy_config"} 1.6882216547566402e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_11_daily_energy_config"} 1.6882216547569463e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_12_daily_energy_config"} 1.6882216547736392e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_13_daily_energy_config"} 1.6882216547739484e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_14_daily_energy_config"} 1.6882216547742496e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_15_daily_energy_config"} 1.6882216547787926e+09 mqtt_message_created{topic="homeassistant_sensor_emporiavue2_circuit_16_daily_energy_config"} 1.6882216548268838e+09 mqtt_message_created{topic="hubitat_home-hub_heartbeat"} 1.6882341259519696e+09 # HELP mqtt_lastCheckinEpoch metric generated from MQTT message. # TYPE mqtt_lastCheckinEpoch gauge mqtt_lastCheckinEpoch{topic="hubitat_home-hub_bedroom button aircon"} 1.688218585746e+012 mqtt_lastCheckinEpoch{topic="hubitat_home-hub_bedroom light"} 1.688216204251e+012 mqtt_lastCheckinEpoch{topic="hubitat_home-hub_big desk button monitors"} 1.688219217504e+012 mqtt_lastCheckinEpoch{topic="hubitat_home-hub_living room main light"} 1.688219060401e+012 # HELP mqtt_battery metric generated from MQTT message. # TYPE mqtt_battery gauge mqtt_battery{topic="hubitat_home-hub_bedroom button aircon"} 100.0 mqtt_battery{topic="hubitat_home-hub_big desk button monitors"} 97.0 # HELP mqtt_power metric generated from MQTT message. # TYPE mqtt_power gauge mqtt_power{topic="hubitat_home-hub_pc power switch"} 243.0 # HELP mqtt_voltage metric generated from MQTT message. # TYPE mqtt_voltage gauge mqtt_voltage{topic="hubitat_home-hub_pc power switch"} 250.0 # HELP mqtt_energy metric generated from MQTT message. # TYPE mqtt_energy gauge mqtt_energy{topic="hubitat_home-hub_pc power switch"} 5.68 # HELP mqtt_amperage metric generated from MQTT message. # TYPE mqtt_amperage gauge mqtt_amperage{topic="hubitat_home-hub_pc power switch"} 0.995 # HELP mqtt_energyCost metric generated from MQTT message. # TYPE mqtt_energyCost gauge mqtt_energyCost{topic="hubitat_home-hub_pc power switch"} 1.21 # HELP mqtt_hourlyEnergy metric generated from MQTT message. # TYPE mqtt_hourlyEnergy gauge mqtt_hourlyEnergy{topic="hubitat_home-hub_pc power switch"} 0.03 # HELP mqtt_han_rssi metric generated from MQTT message. # TYPE mqtt_han_rssi gauge mqtt_han_rssi{topic="glow_C4DD57D80A24_STATE"} -73.0 # HELP mqtt_han_lqi metric generated from MQTT message. # TYPE mqtt_han_lqi gauge mqtt_han_lqi{topic="glow_C4DD57D80A24_STATE"} 108.0 # HELP mqtt_electricitymeter_energy_export_cumulative metric generated from MQTT message. # TYPE mqtt_electricitymeter_energy_export_cumulative gauge mqtt_electricitymeter_energy_export_cumulative{topic="glow_C4DD57D80A24_SENSOR_electricitymeter"} 0.0 # HELP mqtt_electricitymeter_energy_import_cumulative metric generated from MQTT message. # TYPE mqtt_electricitymeter_energy_import_cumulative gauge mqtt_electricitymeter_energy_import_cumulative{topic="glow_C4DD57D80A24_SENSOR_electricitymeter"} 24268.301 # HELP mqtt_electricitymeter_energy_import_day metric generated from MQTT message. # TYPE mqtt_electricitymeter_energy_import_day gauge mqtt_electricitymeter_energy_import_day{topic="glow_C4DD57D80A24_SENSOR_electricitymeter"} 16.45 # HELP mqtt_electricitymeter_energy_import_mpan metric generated from MQTT message. # TYPE mqtt_electricitymeter_energy_import_mpan gauge mqtt_electricitymeter_energy_import_mpan{topic="glow_C4DD57D80A24_SENSOR_electricitymeter"} 1.30000117248e+012 # HELP mqtt_electricitymeter_energy_import_price_unitrate metric generated from MQTT message. # TYPE mqtt_electricitymeter_energy_import_price_unitrate gauge mqtt_electricitymeter_energy_import_price_unitrate{topic="glow_C4DD57D80A24_SENSOR_electricitymeter"} 0.3476 # HELP mqtt_electricitymeter_energy_import_price_standingcharge metric generated from MQTT message. # TYPE mqtt_electricitymeter_energy_import_price_standingcharge gauge mqtt_electricitymeter_energy_import_price_standingcharge{topic="glow_C4DD57D80A24_SENSOR_electricitymeter"} 0.6018 # HELP mqtt_electricitymeter_power_value metric generated from MQTT message. # TYPE mqtt_electricitymeter_power_value gauge mqtt_electricitymeter_power_value{topic="glow_C4DD57D80A24_SENSOR_electricitymeter"} 0.555 # HELP mqtt_level metric generated from MQTT message. # TYPE mqtt_level gauge mqtt_level{topic="hubitat_home-hub_bedroom light strip"} 100.0 # HELP mqtt_clrm metric generated from MQTT message. # TYPE mqtt_clrm gauge mqtt_clrm{topic="homeassistant_light_emporiavue2_d3_led_config"} 1.0 # HELP mqtt_state metric generated from MQTT message. # TYPE mqtt_state gauge mqtt_state{topic="emporiavue2_light_d3_led_state"} 1.0 mqtt_state{topic="emporiavue2_sensor"} 63.9 # HELP mqtt_port metric generated from MQTT message. # TYPE mqtt_port gauge mqtt_port{topic="esphome_discover_emporiavue2"} 6053.0 # HELP mqtt_home_hub metric generated from MQTT message. # TYPE mqtt_home_hub gauge mqtt_home_hub{topic="hubitat_home-hub_heartbeat"} 1.688237830102e+012
I set the prefix env variable
ESPHOME_TOPIC_PREFIXES=emporiavue2
My mistake, I was still using the image from hubitat branch, when switched to latest it works!
Hey, it is me again 😂 😄
Today I flashed Emporia Vue with esphome - https://github.com/emporia-vue-local/esphome
And I managed to get it in mqtt:
Topic:
Value is a raw number with energy usage
In the form you are using:
I don't see it on output, but I see the topics are being counted: