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

shelly_dallas is out of date? #3

Closed
alexander-vitishchenko opened this issue Oct 11, 2021 · 9 comments
Closed

shelly_dallas is out of date? #3

alexander-vitishchenko opened this issue Oct 11, 2021 · 9 comments

Comments

@alexander-vitishchenko
Copy link

alexander-vitishchenko commented Oct 11, 2021

Hi @persuader72!

I was looking exactly for the integration like you did!

I have Shelly 1 and already updated it with ESPHome firmware (binary switch mode).

Then I decided to use my Shelly 1 as thermostat, which requires temperature readings, so I did the following:

  • purchased and connected temperature addon to my Shelly 1
  • installed your "shelly_dallas" like other custom components, restarted Home Assistant
  • adjusted by ESPHome configuration to leverage "shelly_dallas", and then the issues arise...

I've tried to a few config options

"
shelly_dallas:
pin_a: GPIO3
pin_b: GPIO0
"

and then get an error message "Component not found: shelly_dallas."

"
sensor:

  • platform: shelly_dallas
    address: 0xCA011938282E5128
    name: "Temperature"
    "

and get an error message "Platform not found: 'sensor.shelly_dallas'.'"

Can you please advise if I use a proper configuration, or perhaps "shelly_dallas" custom component got outdated, i.e. no longer by a newer version of Home Assistant API?

Thank you,
Alexander

@persuader72
Copy link
Owner

persuader72 commented Oct 12, 2021

Hi @alexander-vitishchenko

Where your "custom_components" folder resides? In my case the "custom_components" folder is inside the same folder where is located the esphome yaml configuration file for my device.

Your configuration seems to be correct to me.
This is my current configuration. I compiled it using the 1.17.2 version, I will test the 1.20.4 tomorrow.

switch:

  • platform: gpio
    pin: GPIO4
    id: ${board_name}_${device_num}_relay
    name: "${board_title} ${device_num} Relay"

binary_sensor:

  • platform: gpio
    pin:
    number: GPIO5
    #mode: INPUT_PULLUP
    #inverted: True
    name: "${board_title} ${device_num} Switch"
    id: ${board_name}_${device_num}_switch

shelly_dallas:
pin_a: GPIO3
pin_b: GPIO0

sensor:

  • platform: shelly_dallas
    address: 0xCA011938282E5128
    name: "Temperature 1"
  • platform: shelly_dallas
    address: 0x0B01193807DD3128
    name: "Temperature 2"
    on_value_range:
    • above: 48.0
      then:
      • switch.turn_off: ${board_name}_${device_num}_relay
    • below: 43.0
      then:
      • switch.turn_on: ${board_name}_${device_num}_relay
  • platform: shelly_dallas
    address: 0x6E0119384DC70728
    name: "Temperature 3"

@trollsoft7
Copy link

Hi Alexander,
image
everything is working fine with core-2021.10.3.

No changes done since persuader helped me a year ago. Still working perfectly fine.

@alexander-vitishchenko
Copy link
Author

@trollsoft7 sounds great as it means that the issue is something specific to me, and thus something relatively easy to fix!

@persuader72 this is my Home Assistant folder structure, where I store custom components
image

Worth mentioning, I'm running Home Assistant Blue Edition (ODROD N2+), based on HASS OS

@trollsoft7
Copy link

I just checked - my used directory is:
image

so different... try my path. br

@alexander-vitishchenko
Copy link
Author

alexander-vitishchenko commented Oct 12, 2021

It looks like I have to store ESPHome "custom_components" within "esphome" folder... not within main "config" folder like I did for other components, e.g. "hacs"

The integration seems to work well after I moved custom_components to a different folder

@alexander-vitishchenko
Copy link
Author

so I've just run the scanner for temperature sensors and got my id "0x7D3C01D0757A9528" :)

@alexander-vitishchenko
Copy link
Author

and now I've added the emperature sensor id to the configuration... and it works, fantastic!

image

@alexander-vitishchenko
Copy link
Author

So I'm one step closer to make Shelly 1 work as a thermostat with ESPHome!

@persuader72 thank you so much for the integration! And thanks @trollsoft7 for such a quick response!

@persuader72
Copy link
Owner

Thanks @alexander-vitishchenko I'm glad to hear it.

The shelly 1 is working quite well, I'm using it to monitor the solar boiler temperatures and is working without problems for a year now.

Regards

image

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

3 participants