athom-tech / athom-configs

Athom Technology Official Center
MIT License
211 stars 133 forks source link

No Relay Power Monitoring EU Plug for ESPHome links to wrong yaml #105

Open Gunni opened 2 weeks ago

Gunni commented 2 weeks ago

Hey,

The No Relay Power Monitoring EU Plug for ESPHome links to wrong yaml.

You need a new yaml without the switch part. Or any of the power switch logic.

Roving-Ronin commented 2 weeks ago

@Gunni I'm still waiting for this plug to come out in the AU version, so can't test it myself. If you can...in your local device file, try adding:

select:
  - platform: template
    name: "Power On State"
    optimistic: true
    icon: "mdi:electric-switch"
    options:
      - Always Off
      - Always On
      - Restore Power Off State
    internal: true

switch:
  - platform: gpio
    name: "Switch"
    pin: GPIO15
    internal: true

then validate and flash it to your 'no relay' plug. If you could confirm this does what your after, that would appear to be to remove the 'Power On State' and 'Switch' options from the devices webGUI / HA?

Could you confirm this and also that no other errors are seen? The above should hide these, whilst the switch logic should just lie dormant in the background.

If this 'solves the issue' then we can see about making this into a subsitute option, so users of these plugs could add something like:

is_no_relay_plug: 'true'

to their substitutions section and have the existing Smart Plug v2 code work for them.

Edit:

Gunni commented 1 week ago

I don't have one yet, it is out of stock for me (EU). I just noticed that the yaml had on/off stuff despite that device specifically not having that capability, which is what I want.

tarontop commented 1 week ago

https://github.com/athom-tech/athom-configs/blob/main/athom-without-relay-plug.yaml

Roving-Ronin commented 1 week ago

@tarontop keeping with your naming standard to date, would this not be better as either: a) athom-smart-plug-v2-without-relay.yaml , or: b) athom-smart-plug-without-relay.yaml

Gunni commented 12 hours ago

Weirdly the product is gone from the website and a ban on shipments to the EU on the website...

What's happening?