TCP commands for Ethernet relay

yes I’ve used the REST command as well, but it doesn’t update the icon for the dimmed lamps… And I don’t get an error or something

what if you just do the only rest command as a test? just to see if it works?

hey @pergola.fabio thank you so much for your help. I made a typo in my command. Everything is up and running now. I’ve created a new post with my whole setup: Dobiss lights integration

yeah, i saw it! indeed its better to create a new topic for new dobiss guys

maybe also mention that @spobo is creating a new component, so all this config is not needed anymore soon :slight_smile:

also maybe mention those 2 pdf files i shared , to make this project, i received them from dobiss

I used the dobiss specific thread to post an update to dobiss2mqtt. If it really works I’ll probably create a new thread for it. So check: Dobiss lights integration

Hi,

I’m new to Home Assistant and trying to find my way around.
I’m used to Domoticz but wanted to try something new so the logical choice was HA.

I created my own standalone home automation system that is based on a RS485 bus system with my own protocol (just 7 bytes) and has an Ethernet interface that accepts raw TCP packets.
I used Domoticz as an add-on to do some additional automation.
In Domoticz I used to run a Python script that sends the necessary bytes over to my system.

I’m looking to do the same from HA but can’t seem to get it going.
I’ve been reading and trying all kind of posts but still no joy.

The idea is basically the same as the one from Fabio but when running the python script I get an error that the import socket is not working. I read that python is kind of ‘sandboxed’ in HA.

Next to that I tried the curl option like:
echo -e “\xFE\xF5\xCA\x06\x03\x00\x3A” | nc 192.168.1.10 1500
Also did get it going.

I’m also a bit stuck in where to run what. What is the best way to test the curl command and same for the python script.
Tips and tricks are very welcome.

Thank you

Hi

you dont need an python script, you can just fire that with a command line switch/script


Thank you for the swift reply !

I also tried this before but think that my syntax might be wrong.
Could you please check if the given example is correct?

Example configuration.yaml entry

switch:

  • platform: command_line
    switches:
    zolder:
    command_on: echo -e “\xFE\xF5\xCA\x06\x03\x00\x3A” | nc 192.168.1.10 1500
    command_off: echo -e “\xFE\xF5\xCA\x06\x02\x00\x3A” | nc 192.168.1.10 1500

i think you need some extra quotes for your command

Could you tell me how you got the python script working as the curl or shell is not working for me unfortunately?
Then I can give it a try with the python script I used to work with.

Thank you

look at my post earlier, some examples there

or use this integration, sometimes easier
when you place those scripts on that folder, you can call the script with a service

Thank you for all the info and tips.
Will give it a try.

I tried to set this up but it’s not working correctly. It will go back to off after trying to turn it on, so the light will turn on indeed but HA things it’s off and it’s impossible to then actually turn it off :frowning:

Value template = false … To the rescue…

Then you can turn something on, while it’s already on… Or visa versa…

I’ll try at some point. I just somehow managed to kill the supervisor while playing with the switch code and I’m left unable to restart HA or any addons
:sob:

Started my own thread about dobiss2mqtt here: Dobiss2mqtt. If we know how something in dobiss works we can try and automate it via dobiss2mqtt so that adding dobiss to homeassistant is just adding a bit of config.

Hi, I’m also a dobiss user. I have an evolution pro system = ambiance pro + pro master. It includes lights, buttons, dimmers, outside sensor. I am pretty happy with it, however in meantime I have many other devices which aren’t able to connect to Dobiss (Philips hue, solar panels, climate temperature, …). I was really disappointed I wasn’t able to connect everything together. So using Home Assistant and combine everything looks brilliant! Will give it a try the next days … looks I am able to install it on a synlogy nas? Anyone of you has experience with it? Or is it better to install on a Raspberry Pi? My biggest concern was the integration of Dobiss, but it looks you guys are having solutions for that which is amazing. I am definitely not a programmer … but let’s see where we end. I see Rutger and Vincent are trying to make life easier, so definitely interested in those threads :slight_smile:

I dont like a PI, I am running HA on a esxi system…
Works perfect together with my evolution sx system… Really happy with it, although I am not using the dobiss2mqtt add-on, still using my own scripts