Closed JSP80 closed 1 year ago
can you specify the usecase you need that for? never heard of it and not sure about the usecase.
I am also controlling the heating of a swimming pool with the deltasol MX. But I only want to have the heating thermostat on when I have enough heat in the boiler and the forecast is good. Now I go in the controller and switch the heating circuit on or off manually. I would like to be able to do that with a virtual switch. I can do this with the provided example code and in the deltasol MX enable or disable the heating circuit based on that switch. From the documentation of the deltasol: With the example code you can have a virtual switch to toggle the HC instead of having a physical switch to wire to an input of the deltasol. I hope my usecase is clear.
Your script depends on Resol VBus and I am not using Resol VBus in this component. And due to the fact that I don’t need it I won’t add it, sorry. But feel free to contribute and add it to my component via pull request.
Hi,
I would also love to see this, but it's not doable with the JSON interface used here. You'd have to construct and send bus telegrams directly via TCP to the vbus (via KM2). I thought about creating an addon (instead of a custom component), where you could run the vbus nodejs em example and listen to state changes of home assistant entities. It would be a first for me, so it will probably take a few month (spare time is limited).
For inspiration on how to do this, I created a small proof of concept using docker-compose and the resol-vbus lib: https://github.com/chiefdeputy/Resol-EmSimulator
This is very much work in progress, so I will not provide support for this till I think it ready.
@chiefdeputy any idea if it could make sense to integrate your poc into our component here?
No, I can not use a component, as they are python only. I need the docker environment to access the existing libs by Daniel. Configuration will then be simply choosing some entity_ids, which will be tracked and have their state sent to the VBus.
Though I will need this component to have the VBus/LAN device working. I plan to implement a webserver in the addon which reads VBus packets and serves them to this component.
Don't expect anything of this in the next few month tough.
See: https://github.com/danielwippermann/resol-vbus/issues/86 EM simulator can be activated using the addon here and a RESTful Command in Home Assistant:
rest_command:
resol_set_temp:
url: http://127.0.0.1:3333/api/v1/em/2/sensor/{{sensor}}/temperaturePt1000
method: POST
payload: '{"value":"{{value | float(25.0)}}"}'
content_type: 'application/json; charset=utf-8'
script:
set_temp_room1:
sequence:
service: rest_command.rest_cmd
data:
sensor: "1"
value: 25
Instead of a script you can also use this in an automation. E.g. triggered when an input_number entity changes.
At first thank you very much for this custom component! I'm using it for a few months now and am very happy with it. It would be even better if we can send switch states from Home Assistant to the KM2 (and the Resol controller). I have seen an implementation of this at github and this is working. But I am neither skilled enough to add this in this repo or use the danielwipperman repo in Home Assistant. So would it be possible to add this?