damianniemiec / fs1pg

Home Assistant add-on for FS1PG Ferguson Smart WiFi Plug
6 stars 4 forks source link

Not working #3

Closed maciekmisko closed 2 years ago

maciekmisko commented 3 years ago

Hi, I just wanted to check if it's still working fo you. I tried setting it up and no luck. I see plug listed in enities but switching it does nothing.

What I did:

damianniemiec commented 3 years ago

Hi,

I've just checked plugin code and fixed some problems with permissions when broadcasting. Also I've added new configuration option broadcast to correct socket settings.

And last but not least I've changed repository structure so now it can be installed with HACS.

Check new version and let me know if it works for you.

maciekmisko commented 3 years ago

Thx. I managed to install via HACS. Unfortunately it's still not working for me. My configuration below. IP and MAC were taken from router config page.

switch:
  - platform: fs1pg
    device_name: Farelka # name
    broadcast: false # set to true if broadcst
    ip: "192.168.1.180" # plug ip address (could be network broadcast address like 192.168.0.255)
    mac: "xx:xx:xx:xx:xx:xx" # plug MAC address
    scan_interval: 10 # update interval
damianniemiec commented 3 years ago

Could you check logs and show me errors reporting by HA? Also exact model of the plug could be helpful.

maciekmisko commented 3 years ago

Hi, logs:

Logger: custom_components.fs1pg.switch
Source: custom_components/fs1pg/switch.py:91
Integration: fs1pg (documentation, issues)
First occurred: 9:37:17 AM (542 occurrences)
Last logged: 11:07:33 AM

Connection timeout

model: fs2pg (seems a newer model?)

damianniemiec commented 3 years ago

I'm afraid that your plug is not compatible with integration. I've tested it on older version https://ferguson-digital.eu/download/smarthome/FS1PG_Smart_Wi-Fi_Plug/datasheets/Ferguson-SmartHome-Smart_WiFi_Plug-gb.pdf

Krzysztonek commented 2 years ago

Hi @damianniemiec Do you have any hint/idea how to change the IP address of this FS1PG device if it is not accessible from the browser? In WeConn app there is also no such option available.

After installing I checked its IP but it's always being detected under 192.168.1.43, which is occupied by some other device in my LAN (this is fixed device, no chance to change its IP). Therefore I need to change the IP of FS1PG to another free IP address. How to handle this?

damianniemiec commented 2 years ago

@Krzysztonek this question is related to app / internal software not integration itself so you should ask app devs or manufacturer.

Anyway, it looks like you set static ip during configuration. My best advice is to reset plug to factory settings (press and hold button for about 30 seconds, as far as i remember) and reconfigure plug to use DHCP so router can assign ip dynamically.

maciekmisko commented 2 years ago

I'm afraid that your plug is not compatible with integration. I've tested it on older version https://ferguson-digital.eu/download/smarthome/FS1PG_Smart_Wi-Fi_Plug/datasheets/Ferguson-SmartHome-Smart_WiFi_Plug-gb.pdf

Hi, any hints on how to make it work? I’ve been experimenting with a little bit of python recently so maybe I could make it work after some modifications? Happy to share my findings afterwards.

damianniemiec commented 2 years ago

Hi. Just clone / fork this repository and feel free to make modifications. If you can determine plug version and create code to support it create PR (i have only fs1pg so i cannot create code for fs2pg or test it). Or you can create separate integration just for fs2pg