Did my own lua script and renamed the values i wanted.
Seems like i have other values than the script you guys have.
------ BEGIN ------
-- Read API values
s = request['content'];
--
-- Energimeter
--
-- return value
local a = domoticz_applyJsonPath(s,'.total_power_import_t1_kwh')
-- active ...
Search found 10 matches
- Monday 12 February 2024 13:53
- Forum: Utility
- Topic: HomeWizard P1 Wifi into Domoticz
- Replies: 31
- Views: 18810
- Sunday 04 February 2024 16:58
- Forum: Utility
- Topic: HomeWizard P1 Wifi into Domoticz
- Replies: 31
- Views: 18810
Re: HomeWizard P1 Wifi into Domoticz
After 2 weeks I' am getting this error?'
Error: P1 HomeWizard: Failed to read response data
Set DEBUG ON
---------------
2023-01-06 14:42:00.041 P1 HomeWizard: Pushing 'onHeartbeatCallback' on to queue
2023-01-06 14:42:00.091 P1 HomeWizard: Processing 'onHeartbeatCallback' message
2023-01-06 ...
- Thursday 02 May 2019 15:55
- Forum: Temperature and Weather
- Topic: Makerlife Weatherstation through MQTT
- Replies: 12
- Views: 2940
Re: Makerlife Weatherstation through MQTT
Hi,
Reading this thread I don't think this way it is going to work.
However it is quite easy.
In general it is a bad idea to publish messages from external equipment directly into domoticz/in, because the syntax used by the external equipment will not match the syntax expected by Domoticz.
I ...
- Tuesday 30 April 2019 17:31
- Forum: Temperature and Weather
- Topic: Makerlife Weatherstation through MQTT
- Replies: 12
- Views: 2940
Re: Makerlife Weatherstation through MQTT
"2019-04-30 17:29:45.464 MQTT: Topic: domoticz/in, Message: {"idx": 11, "svalue": "WB;WD;WS;WG;22;24", "command": "udevice", "nvalue": 0}"
So this is were im stuck right now, were do i put in the data i get from my windsensor?
tried putting the speed_avg everywhere wich is my data for the ...
So this is were im stuck right now, were do i put in the data i get from my windsensor?
tried putting the speed_avg everywhere wich is my data for the ...
- Tuesday 30 April 2019 16:20
- Forum: Temperature and Weather
- Topic: Makerlife Weatherstation through MQTT
- Replies: 12
- Views: 2940
Re: Makerlife Weatherstation through MQTT
"while True:
sleep (interval)
speed.append(wind(interval))
i += 1
if i == 15:
temper = temperature()
speed_avg = sum(speed,0.00)/len(speed)
payload=json.dumps({"rain":rain_cum,
"temperature":temper,
"windspeed":speed_avg,
"idx":11})
mqtt_c.publish('domoticz/in',payload)
# print('Publish ...
sleep (interval)
speed.append(wind(interval))
i += 1
if i == 15:
temper = temperature()
speed_avg = sum(speed,0.00)/len(speed)
payload=json.dumps({"rain":rain_cum,
"temperature":temper,
"windspeed":speed_avg,
"idx":11})
mqtt_c.publish('domoticz/in',payload)
# print('Publish ...
- Tuesday 30 April 2019 16:18
- Forum: Temperature and Weather
- Topic: Makerlife Weatherstation through MQTT
- Replies: 12
- Views: 2940
Re: Makerlife Weatherstation through MQTT
"2019-04-30 15:43:07.776 MQTT: Topic: domoticz/in, Message: {"temperature": 28.75, "rain": 0.2794, "windspeed": 0.6628257844249887}
2019-04-30 15:43:07.777 Error: MQTT: unknown idx received! (idx 0)"
I think you are missing the "idx":<idx> in your JSON string. Domoticz does not know now which ...
- Tuesday 30 April 2019 15:56
- Forum: Temperature and Weather
- Topic: Makerlife Weatherstation through MQTT
- Replies: 12
- Views: 2940
Re: Makerlife Weatherstation through MQTT
"2019-04-30 15:43:07.776 MQTT: Topic: domoticz/in, Message: {"temperature": 28.75, "rain": 0.2794, "windspeed": 0.6628257844249887}
2019-04-30 15:43:07.777 Error: MQTT: unknown idx received! (idx 0)"
This is what my log says right now, i change the "mqtt_c.publish('outside/weather/',payload)" to ...
2019-04-30 15:43:07.777 Error: MQTT: unknown idx received! (idx 0)"
This is what my log says right now, i change the "mqtt_c.publish('outside/weather/',payload)" to ...
- Monday 29 April 2019 10:09
- Forum: Temperature and Weather
- Topic: Makerlife Weatherstation through MQTT
- Replies: 12
- Views: 2940
Re: Makerlife Weatherstation through MQTT
You have to publish your messages to topic 'domoticz/in' and the idx in the JSON determines which dummy device will be updated. I'm not 100% sure if you can update every dummy device using MQTT. Have a look at: https://www.domoticz.com/wiki/MQTT
How exactly do i do that? Could you describe ...
- Monday 29 April 2019 9:15
- Forum: Temperature and Weather
- Topic: Makerlife Weatherstation through MQTT
- Replies: 12
- Views: 2940
Re: Makerlife Weatherstation through MQTT
You have to publish your messages to topic 'domoticz/in' and the idx in the JSON determines which dummy device will be updated. I'm not 100% sure if you can update every dummy device using MQTT. Have a look at: https://www.domoticz.com/wiki/MQTT
How exactly do i do that? Could you describe for a ...
- Sunday 28 April 2019 21:38
- Forum: Temperature and Weather
- Topic: Makerlife Weatherstation through MQTT
- Replies: 12
- Views: 2940
Makerlife Weatherstation through MQTT
Hi!
Im trying to get my Makerlife Weatherstation to work with Domoticz.
I have tried this script: https://github.com/kobbas/mqttweather
and a MQTT broker that is connected with Domoticz.
Then i added Dummy Hardware in Domoticz
But thats as far as i can get, how do i get the information from MQTT ...
Im trying to get my Makerlife Weatherstation to work with Domoticz.
I have tried this script: https://github.com/kobbas/mqttweather
and a MQTT broker that is connected with Domoticz.
Then i added Dummy Hardware in Domoticz
But thats as far as i can get, how do i get the information from MQTT ...