dumpfheimer / OptoProxy

Viessmann Optolink <-> WiFi Proxy
Other
4 stars 1 forks source link

question about project #2

Open Jumbo125 opened 1 year ago

Jumbo125 commented 1 year ago

hello i'm searching for a way, to get/send data via http request, to use the data in my php script. ESPHome is not so good for http request and Vitowifi is not so easy to create a new datapoint. So i found your project. It looks great. Now i have some questions:

  1. can i spend you tip?
  2. do you use a libary from openv ????
  3. do you use Vitowifi inside?
  4. i only use arduino ide not platform io, but i will try it. You include some libarys in your script. #include #include . where can i find this scripts????

Thank you a lot I see, you use the vitowifi too. it will be included with platform.ino

dumpfheimer commented 1 year ago

Betriebsart ist the "overall mode" in which the therme es. For example "warm water only" or "heat/cool/we" can look up the values if you like

dumpfheimer commented 1 year ago

Do you mean raumSollRedTenp? That's the Raum Soll Reduziert Temperatur, you have two setpoints. One "default" and one "Reduziert" (=reduced) which can be used for vacation or Nachtabsenkung (=reduced temperature during the night)

Jumbo125 commented 1 year ago

yes, i do.

thank you, i didn't know whats red.temp mean, so i know: Thats a second value for special times liike vacation or nachtabsenkung. i believe, i don't use a nachtabsenkung

dumpfheimer commented 1 year ago

I don't either. Especially when you can automatically change the normal Raum Soll temp as you desire..

Jumbo125 commented 1 year ago

Thank you a lot i will try to find my datapoint. Your codes not work for me :-( but i don't give up. My device id shows 204d... thats mean WO1 but this datapoint get also not correct values... At the moment i use the datapoints from this list.... i don't know why the VBC700 datapoints work for me..... DP_VBC700_AW.csv

I'm a little bit sad, because i neve got a string back, like "heat/cool/we" or something else.... only numbers like 1-3.... i treid to use state, mode, stat, raw... nothing helps

Jumbo125 commented 1 year ago

i found a list :-) Vitocal 200-S Datenblatt.pdf Datenpunkte_204D_Vitocal_xxx-S_Vitotronic_200_Typ_WO1CVitocaldensVitolacaldens.pdf by the way, is it possible to add multiple get parameter with one request or does the webserver on the esp only work with one parameter each request?

Jumbo125 commented 1 year ago

@dumpfheimer sorry to bother you again i treid to write my first datapoint

is it possible that the link in you description not work?

Example URL for writing Address 0x2000 (Room Temperature Setpoint) http:///read?addr=0x2000&conv=temp&val=21

is it correct to change read with write?

dumpfheimer commented 1 year ago

Yes, sorry!

It should be http:///write?addr=0x2000&conv=temp&val=21

dumpfheimer commented 1 year ago

I'm a little bit sad, because i neve got a string back, like "heat/cool/we" or something else.... only numbers like 1-3.... i treid to use state, mode, stat, raw... nothing helps

Yeah, you will only ever get binary / numeric data back. It greatly depends on the heater model and data point what that values means.

dumpfheimer commented 1 year ago

by the way, is it possible to add multiple get parameter with one request or does the webserver on the esp only work with one parameter each request?

No, its always one value.

Having multiple values would increase complexity in error handling and is frankly not really worth the effort. Multiple HTTP requests in series work fine and pretty much as fast as the heater can handle the requests, so there is not really a huge benefit to it

Jumbo125 commented 1 year ago

thank you a lot! is it okay, if i ask you something, if i need help? or is it enough for you free time and you can't spend more time?

The problem is, that i need to use new datapoints. my device is builded for a few months.....

i got the datapoints from a viessmann service man.... now i got this datapoint 0xB423

image if i use the datapoint "count" i got this value: 131584

counts: 512

raw: 0002

It'S crazy, becuase the verdichter don't run. On my viessmann device is 0

dumpfheimer commented 1 year ago

Sure, keep asking! I am glad to help, it just might take some time for me to get back to you (and if I don't for a few days don't hesitate to remind me, I do lose track of stuff "from time to time")

Did you try converting with conv=mode or conv=mode?

Jumbo125 commented 1 year ago

oh sorry wrong picture. i mean a other value. here is the picture: image it shows the working state in percentage. so i used count. i tried a lot of ideas and i fthink it works now. i user it with counts "s" on the end of count

Jumbo125 commented 1 year ago

do you use the same datapoints like vitowifi project? can i use all the same datpoints from his github tutorial?

sorry for asking you again. do you work with this datapoints:

image

Do you know: Means ElektroEnergie_Warmwasser_12Monate the count value of the used electricity from my power grid?

Means WaermeEnergie_Heizen_12Monate the energie value, which would be generate by the warm-energie. like 1 khw heating

dumpfheimer commented 1 year ago

0xB423 should be counts, right. It means count+state. For compressor state that means you will know how often the compressor had started and if it is running right now by reading that one value. Not sure if both values are passed in the http response right now.

do you use the same datapoints like vitowifi project?

The data points depend on your heater rather than VitoWiFi/Optolink/whatever you will need to find a document for your specific heater that lists the data points. Many of them, that are used for configuration, are in the manual or service manual of the heater. But there are many other ones too that Viessmann seems to want to keep out of public.

I could only guess if the energy is electricity in or heat out. But I can remember them being quite inaccurate, it's more like a guess.

Jumbo125 commented 1 year ago

i see. thank you a lot!

Jumbo125 commented 11 months ago

hy @dumpfheimer do you have problems with writing datas?

i try to write warmwasser hysterese http://10.0.0.135/write?addr=0x6007&conv=temp&val=4

or heating with electro http://10.0.0.135/write?addr=0x6015&conv=mode&val=0

i only get always "INVALID_ADDRESS"

dumpfheimer commented 11 months ago

Hi!

The data points that can be written are limited in the code: https://github.com/dumpfheimer/OptoProxy/blob/master/software/src/optolink.cpp#L123-L154

This is done to prevent writing to wrong/unknown/unintended data points. Feel free to add extra data points.

Jumbo125 commented 11 months ago

oh, really nice idea!!! i wil pass it for me. hope my datapoints are read/writeable . Thank you Do you know how I can disable the mqtt? I dont need it Sorry for the bothering