Closed javiermitchell closed 2 years ago
Try typing a forward slash after the topic name (in /config/configuration.yaml) if not already there.
James This is my yaml configuration: mqtt: sensor:
I was also asking about some of the sensors that are not documented Javier On Thursday, 29 September 2022 at 11:13:55 BST, James Hughes @.***> wrote:
Try typing a forward slash after the topic name (in /config/configuration.yaml) if not already there.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Hello Javier, Home Assistant just changed how to interpret mqtt now....this is what works for me:
mqtt: sensor:
The / goes at the end of the state topic and now everything falls under mqtt then whatever it is a sensor a binary sensor etc..nake sure the spacing is correct as well. Jim Miller
From: javiermitchell @.> Sent: Thursday, September 29, 2022 8:56 AM To: jhughes1010/weather @.> Cc: Subscribed @.***> Subject: Re: [jhughes1010/weather] mqtt messages (Issue #16)
James This is my yaml configuration: mqtt: sensor:
I was also asking about some of the sensors that are not documented Javier On Thursday, 29 September 2022 at 11:13:55 BST, James Hughes @.<mailto:@.>> wrote:
Try typing a forward slash after the topic name (in /config/configuration.yaml) if not already there.
- Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.<mailto:@.>>
- Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjhughes1010%2Fweather%2Fissues%2F16%23issuecomment-1262321429&data=05%7C01%7C%7Cdbc163a2f6f04435065208daa2224d06%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638000565456975840%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=D4x2%2BEr5vSDvTqcwJotrIzdb3JfIPCVXgLsKsXgIPOE%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFRLPGPDNPU75EHP3IEHZKLWAWNV5ANCNFSM6AAAAAAQYPBJTA&data=05%7C01%7C%7Cdbc163a2f6f04435065208daa2224d06%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638000565456975840%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BVcS%2F47XmHbiwoOTNQJGZE5W5b1iIs9tJJsY%2Bt8Ocjs%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>
Hi james, after I changed the HA MQQ config to add the trailing backslash, I can now see the sensors on HA However, no matter what I do I cannot see the wind speed and wind direction being sent via MQTT, I have tested the signal on a oscilloscope on pins 14 (wind speed ) and 35 ( win dir) and is OK. As I said , I'm using board v3.3, so I wonder if the configuration is monitoring the wrong pins on thw wroom-32. Thanks again
Let me take a look into this. Honestly, I do not think I have done anything with those in HA yet.
James
On Sep 29, 2022, at 2:19 PM, javiermitchell @.***> wrote:
Hi james, after I changed the HA MQQ config to add the trailing backslash, I can now see the sensors on HA However, no matter what I do I cannot see the wind speed and wind direction being sent via MQTT, I have tested the signal on a oscilloscope on pins 14 (wind speed ) and 35 ( win dir) and is OK. As I said , I'm using board v3.3, so I wonder if the configuration is monitoring the wrong pins on thw wroom-32. Thanks again
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
Thanks James I figured it was because my board was not using the default dev kit pinout, so added a #define KREBS_PCB in my secrets.h file, however when I try to compile I get a lot of errors as there is a lot variables not defined for this instance Let me know If this is not the right approach
Just to confirm: the issue is that the station does not send the MQTT data for wind sensors . If I check MQTT Explorer the topic is there , but no data Thanks again
Both speed and direction are not working for you?
James
On Sep 29, 2022, at 2:58 PM, javiermitchell @.***> wrote:
Just to confirm: the issue is that the station does not send the MQTT data for wind sensors . If I check MQTT Explorer the topic is there , but no data Thanks again
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
yes, none are working. I have not check- yet - the rain sensor
Thanks
I verified wind speed and direction are working and viewable in MQTT explorer on my end. Start with the serial console logs, wind speed and direction are present there.
Also, would not hurt to get a rain sensor checked out. With the sensor plugged in, just tip it and watch the serial console report that the station woke up for rain tip count update.
Do not use the #define KREBS_PCB unless you have a PCB from Thomas Krebs
James I wil also check rain sensor I thought the serial console was disabled Thanks for checking I will let you know if I find out
I thought the serial port was sidabled as I could not see anything before I connected the rain sensor, which wakes up the device, however, it seems it goes straight back to sleep: Wakeup caused by external signal using RTC_IO
Going to sleep now... Waking in 253 seconds
If I move the rain bucket again, the pattern is repeated maybe is sleeeping ALL the time?
OK, I left the serial port connected until it woke up, now i'm seeing:
10:43:58.929 -> ----- Sensor Statuses -----
10:43:58.975 -> BME status: 1
10:43:58.975 -> UV status: 1
10:43:58.975 -> lightMeter status: 1
10:43:58.975 -> temperature status: 1
10:43:58.975 ->
10:43:58.975 -> Date:30 09 2022 Time: 04:44:02
10:43:58.975 -> Time to next wake: 298 seconds
10:43:58.975 -> No Wind dataWindSpeed: 0.000000
10:43:58.975 -> Analog value: 559 Wind direction: 202.5
and MQTT:
10:43:59.300 -> WeatherStation/windSpeed/: 0.000
10:43:59.300 -> MQTT status: 1
10:43:59.347 -> WeatherStation/windDirection/: 202
10:43:59.347 -> MQTT status: 1
10:43:59.392 -> WeatherStation/windCardinalDirection/: SSW
So, it looks correct, except that there IS WIND speed and is reporting zero. How I can further troubleshoot it? As I said, I had a scope on that pin and all look good Thanks again
First, the easy answer: the tip pin for the rain gauge wakes, increments a counter, then sleeps. It will get accumulated and sent with sensor data on the timer WAKE event.
The anemometer must be spinning when the device wakes. The station is incapable of monitoring wind while sleeping. I spin it manually while the device is awake to see wind speed.
James
On Sep 30, 2022, at 4:54 AM, javiermitchell @.***> wrote:
OK, I left the serial port connected until it woke up, now i'm seeing: 10:43:58.929 -> ----- Sensor Statuses ----- 10:43:58.975 -> BME status: 1 10:43:58.975 -> UV status: 1 10:43:58.975 -> lightMeter status: 1 10:43:58.975 -> temperature status: 1 10:43:58.975 -> 10:43:58.975 -> Date:30 09 2022 Time: 04:44:02 10:43:58.975 -> Time to next wake: 298 seconds 10:43:58.975 -> No Wind dataWindSpeed: 0.000000 10:43:58.975 -> Analog value: 559 Wind direction: 202.5 and MQTT: 10:43:59.300 -> WeatherStation/windSpeed/: 0.000 10:43:59.300 -> MQTT status: 1 10:43:59.347 -> WeatherStation/windDirection/: 202 10:43:59.347 -> MQTT status: 1 10:43:59.392 -> WeatherStation/windCardinalDirection/: SSW
So, it looks correct, except that there IS WIND speed and is reporting zero. How I can further troubleshoot it? As I said, I had a scope on that pin and all look good Thanks again
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
James Sorry to have bothered you You are absolutely right: I thought the anemometer WAS spinning when it woke up, but it wasn't! I Think I got it now Thanks for your help -and patience - with me
No worries! We have plans for more interesting wind measurement actions, but they will take power for more frequent sampling from the sensor. Stay tuned!
Great!! Thanks, I will do Any interesting insights for HA?
I’m bare minimum user with HA. I was happy to see my data and create a fuel gauge for the battery level😂James HughesOn Sep 30, 2022, at 7:46 AM, javiermitchell @.***> wrote: Great!! Thanks, I will do Any interesting insights for HA?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>
I'm trying to integrate the weather station sensor data into homeassistant via MQTT ( after enabling MQTT on secrets file) Using mqtt explorer I can see updates every 5 minutes, or so However, I cannot see anything if I susbscibe to any of the topics I'm not sure if I'm doing something wrong or maybe the station is sending the messages in an "stange" way? Thanks