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

After updating core-2023.6.3 wattmeter not working #95600

Closed
nokia321 opened this issue Jun 30, 2023 · 22 comments
Closed

After updating core-2023.6.3 wattmeter not working #95600

nokia321 opened this issue Jun 30, 2023 · 22 comments

Comments

@nokia321
Copy link

The problem

Hello.
Since the last update, the Watt meter has stopped showing. Integration via MQQT. After returning the older version, the wattmeter is functional.

What version of Home Assistant Core has the issue?

core-2023.6.3

What was the last working version of Home Assistant Core?

core-2023.6.1

What type of installation are you running?

Home Assistant OS

Integration causing the issue

core-2023.6.3

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

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

Code owner commands

Code owners of mqtt 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 mqtt Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


mqtt documentation
mqtt source
(message by IssueLinks)

@jbouwh
Copy link
Contributor

jbouwh commented Jul 1, 2023

What do you mean with the Watt meter. Is there any configuration or documentation you can refer to that can help to understand your issue and how to reproduce it?

@daaex1
Copy link

daaex1 commented Jul 2, 2023

Since Update to 2023.6.3 no Devices available in the MQTT Device Entitiy.
With MQTT Explorer i see all devices.
grafik
grafik

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

Your view show the state. Can you post the config message and the state payload message from above?
May be there was a change in Zigbee2Mqtt, if so, open an issue at the Zigbee2Mqtt repo.

@daaex1
Copy link

daaex1 commented Jul 2, 2023 via email

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

It seems that the configuration payload has an invalid device URL in the device configuration. The value in the payload is not a valid URL. I suggest you open an issue at https://github.com/Koenkk/zigbee2mqtt/issues.
Please include the logs you also added here.
As this is not an issue with HA, I will need to close the issue here. I hope you understand that.

@jbouwh jbouwh closed this as not planned Won't fix, can't repro, duplicate, stale Jul 2, 2023
@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

Sorry I just realized the failure is is not about the watt meter. The config message published under homeassistant/{platform}/some_id/config. You should check the config published if it is valid.

@jbouwh jbouwh reopened this Jul 2, 2023
@daaex1
Copy link

daaex1 commented Jul 2, 2023

ok can you advise me, where to check ?

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

You can find the configs in MQTT explorer under homeassistant/* topic. Find the config topic that does not work and the corresponding state payload.

@daaex1
Copy link

daaex1 commented Jul 2, 2023

all devices working and all states ar visible trough the mqtt explorer.
but MQTT with Mosquitto won't show any devices.
grafik

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

Mqtt will only show devices if the config is valid.

@daaex1
Copy link

daaex1 commented Jul 2, 2023

{
"availability": [
{
"topic": "homeassistant/bridge/state"
}
],
"device": {
"configuration_url": "/api/hassio_ingress/JgdzaRsadO5jWjhSXcce84LvNQsfH_K7tDNFL0d0XT0/#/device/0xa4c138c8f579aecb/info",
"identifiers": [
"zigbee2mqtt_0xa4c138c8f579aecb"
],
"manufacturer": "TuYa",
"model": "Soil sensor (TS0601_soil)",
"name": "Soil3"
},
"enabled_by_default": true,
"icon": "mdi:water-percent",
"json_attributes_topic": "homeassistant/Soil3",
"name": "Soil3 soil moisture",
"state_class": "measurement",
"state_topic": "homeassistant/Soil3",
"unique_id": "0xa4c138c8f579aecb_soil_moisture_homeassistant",
"unit_of_measurement": "%",
"value_template": "{{ value_json.soil_moisture }}"
}

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

Right. Also here the configuration url fails the schema. May be the url is missing the host part intentionally.

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

@Koenkk I the configuration URL intentionally not following a standard URL schema?

@daaex1
Copy link

daaex1 commented Jul 2, 2023

i can't change the url under zigbee2mqtt edge > settings > frontend. the url keeps resetting.

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

I know, that is why I asked @Koenkk. It might just work if we would loosen the URL validation.

@daaex1
Copy link

daaex1 commented Jul 2, 2023

thanks a lot ;-)

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

{
"availability": [
{
"topic": "homeassistant/bridge/state"
}
],
"device": {
"configuration_url": "/api/hassio_ingress/JgdzaRsadO5jWjhSXcce84LvNQsfH_K7tDNFL0d0XT0/#/device/0xa4c138c8f579aecb/info",
"identifiers": [
"zigbee2mqtt_0xa4c138c8f579aecb"
],
"manufacturer": "TuYa",
"model": "Soil sensor (TS0601_soil)",
"name": "Soil3"
},
"enabled_by_default": true,
"icon": "mdi:water-percent",
"json_attributes_topic": "homeassistant/Soil3",
"name": "Soil3 soil moisture",
"state_class": "measurement",
"state_topic": "homeassistant/Soil3",
"unique_id": "0xa4c138c8f579aecb_soil_moisture_homeassistant",
"unit_of_measurement": "%",
"value_template": "{{ value_json.soil_moisture }}"
}

This is not your watt meter BTW

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

Unfortunally, the URL does not work (a schema fix is not enough) , the schema and host part must be added to make it work in the frontend. This must be fix in Zigbee2MQTT which is no part of Home Assistant.

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

See Koenkk/zigbee2mqtt#18170

@jbouwh
Copy link
Contributor

jbouwh commented Jul 2, 2023

@nokia321 As you can see this issue already exists. So for now I am going the close this issue as we won't fix this in HA.

@jbouwh jbouwh closed this as not planned Won't fix, can't repro, duplicate, stale Jul 2, 2023
@nokia321
Copy link
Author

nokia321 commented Jul 2, 2023

Unfortunately, it is difficult for me to solve it, so I threw away the zigbee TuYa PJ-MGW1203 wattmeter and ordered Shelly EM.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants